edu.cmu.sphinx.tools.gui.reader
Class GUIReaderException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by edu.cmu.sphinx.tools.gui.reader.GUIReaderException
All Implemented Interfaces:
java.io.Serializable

public class GUIReaderException
extends java.lang.Exception

This class is thrown when there is error during reading operations

Author:
Ariani
See Also:
Serialized Form

Field Summary
static int EXCEPTION_FILE_NOT_FOUND
           
static int EXCEPTION_INVALID_TYPE
           
static int EXCEPTION_IO
           
static int EXCEPTION_NO_FILENAME
           
static int EXCEPTION_OTHER
           
 
Constructor Summary
GUIReaderException(java.lang.String msg, int mode)
          Constructs an instance of GUIReaderException with the specified detail message.
 
Method Summary
 int getErrorCode()
           
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EXCEPTION_OTHER

public static final int EXCEPTION_OTHER
See Also:
Constant Field Values

EXCEPTION_IO

public static final int EXCEPTION_IO
See Also:
Constant Field Values

EXCEPTION_NO_FILENAME

public static final int EXCEPTION_NO_FILENAME
See Also:
Constant Field Values

EXCEPTION_FILE_NOT_FOUND

public static final int EXCEPTION_FILE_NOT_FOUND
See Also:
Constant Field Values

EXCEPTION_INVALID_TYPE

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

GUIReaderException

public GUIReaderException(java.lang.String msg,
                          int mode)
Constructs an instance of GUIReaderException with the specified detail message.

Parameters:
msg - the detail message.
mode - the type of error that occurs
Method Detail

getErrorCode

public int getErrorCode()
Returns:
Mode of this exception, which explains the type of exception