lameonj
Class LAMEOnJException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by lameonj.LAMEOnJException
All Implemented Interfaces:
java.io.Serializable

public class LAMEOnJException
extends java.lang.RuntimeException

The LAMEOnJException is the exception class used to throw errors detected inside the LAMEOnJ library.
If a LAME method returns an non-null error code, this code is used to raise this exception.

See Also:
Serialized Form

Field Summary
protected  int code
           
 
Constructor Summary
LAMEOnJException(java.lang.String message)
          Constructs a new exception with the specified detail message.
LAMEOnJException(java.lang.String msg, int code)
          Constructs a new exception with the specified LAME error code.
LAMEOnJException(java.lang.String message, java.lang.Throwable cause)
          Constructs a new exception with the specified detail message and cause.
LAMEOnJException(java.lang.Throwable cause)
          Constructs a new exception with the specified cause.
 
Method Summary
 int getCode()
          Returns the LAME error code.
 
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
 

Field Detail

code

protected int code
Constructor Detail

LAMEOnJException

public LAMEOnJException(java.lang.String message)
Constructs a new exception with the specified detail message.
The corresponding base constructor is called.

Parameters:
message - the detail message.

LAMEOnJException

public LAMEOnJException(java.lang.String message,
                        java.lang.Throwable cause)
Constructs a new exception with the specified detail message and cause.
The corresponding base constructor is called.

Parameters:
message - the detail message.
cause - the cause.

LAMEOnJException

public LAMEOnJException(java.lang.Throwable cause)
Constructs a new exception with the specified cause.
The corresponding base constructor is called.

Parameters:
cause - the cause.

LAMEOnJException

public LAMEOnJException(java.lang.String msg,
                        int code)
Constructs a new exception with the specified LAME error code.

Parameters:
msg - explanation message.
See Also:
getCode()
Method Detail

getCode

public int getCode()
Returns the LAME error code.

Returns:
the LAME error code if was defined else returns 0.
See Also:
LAMEOnJException(String,int)


Copyright © 2006-2008 Jose Maria Arranz. All Rights Reserved.