org.xiph.libshout
Class ShoutException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.xiph.libshout.ShoutException
All Implemented Interfaces:
java.io.Serializable

public class ShoutException
extends java.lang.Exception

libshout: org.xiph.libshout.ShoutException

Author:
andy
See Also:
Serialized Form

Field Summary
static int SHOUTERR_NOERROR
           
static int SHOUTERR_SUCCESS
           
 
Constructor Summary
ShoutException(java.lang.String message)
          Constructor
 
Method Summary
static void assertOnError(int shoutResult, Shout shout, java.lang.String desc)
          Throw a ShoutException if the given result is not successful.
 
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

SHOUTERR_SUCCESS

public static final int SHOUTERR_SUCCESS
See Also:
Constant Field Values

SHOUTERR_NOERROR

public static final int SHOUTERR_NOERROR
See Also:
Constant Field Values
Constructor Detail

ShoutException

public ShoutException(java.lang.String message)
Constructor

Parameters:
message - exception message
Method Detail

assertOnError

public static void assertOnError(int shoutResult,
                                 Shout shout,
                                 java.lang.String desc)
                          throws ShoutException
Throw a ShoutException if the given result is not successful.

Parameters:
shoutResult - result of shout operation
shout - item producing error
desc - description of operation
Throws:
ShoutException