javazoom.jl.decoder

Class BitstreamException

Implemented Interfaces:
BitstreamErrors, JavaLayerErrors

public class BitstreamException
extends JavaLayerException
implements BitstreamErrors

Instances of BitstreamException are thrown when operations on a Bitstream fail.

The exception provides details of the exception condition in two ways:

  1. as an error-code describing the nature of the error

  2. as the Throwable instance, if any, that was thrown indicating that an exceptional condition has occurred.
Since:
0.0.6

Fields inherited from interface javazoom.jl.decoder.BitstreamErrors

BITSTREAM_LAST, INVALIDFRAME, STREAM_EOF, STREAM_ERROR, UNEXPECTED_EOF, UNKNOWN_ERROR, UNKNOWN_SAMPLE_RATE

Fields inherited from interface javazoom.jl.decoder.JavaLayerErrors

BITSTREAM_ERROR, DECODER_ERROR

Constructor Summary

BitstreamException(String msg, Throwable t)
BitstreamException(int errorcode, Throwable t)

Method Summary

int
getErrorCode()
static String
getErrorString(int errorcode)

Methods inherited from class javazoom.jl.decoder.JavaLayerException

getException, printStackTrace, printStackTrace

Constructor Details

BitstreamException

public BitstreamException(String msg,
                          Throwable t)

BitstreamException

public BitstreamException(int errorcode,
                          Throwable t)

Method Details

getErrorCode

public int getErrorCode()

getErrorString

public static String getErrorString(int errorcode)

JavaZOOM 1999-2005