fi.helsinki.cs.ohtu.mpeg2.util
Class StartCodeEmulationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by fi.helsinki.cs.ohtu.mpeg2.util.StartCodeEmulationException
All Implemented Interfaces:
java.io.Serializable

public class StartCodeEmulationException
extends java.lang.RuntimeException

Signals that start code emulation has been attempted. Start code emulation occurs when a field or a set of subsequent fields are set to have values which might cause the sequence to be interpreted as a start code. Therefore, certain values and combinations of multiple values are forbidden. This exception is raised when such constraints are violated.

See Also:
StartCode, Serialized Form

Constructor Summary
StartCodeEmulationException()
          Constructs a StartCodeEmulationException with null as its detail error message.
StartCodeEmulationException(java.lang.String message)
          Constructs a StartCodeEmulationException with the given message as its detail error message.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StartCodeEmulationException

public StartCodeEmulationException()
Constructs a StartCodeEmulationException with null as its detail error message.

See Also:
RuntimeException.RuntimeException()

StartCodeEmulationException

public StartCodeEmulationException(java.lang.String message)
Constructs a StartCodeEmulationException with the given message as its detail error message.

Parameters:
message - The detail error message.
See Also:
RuntimeException.RuntimeException(String)