edu.cmu.sphinx.tools.gui.writer
Class GUIWriterException

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

public class GUIWriterException
extends java.lang.Exception

This exception is thrown when there is an error in the writing process to output

Author:
Ariani
See Also:
Serialized Form

Field Summary
static int EXCEPTION_INVALID_TYPE
           
static int EXCEPTION_IO
           
static int EXCEPTION_NO_FILENAME
           
static int EXCEPTION_OTHER
           
 
Constructor Summary
GUIWriterException(java.lang.String msg, int mode)
          Constructs an instance of GUIWriterException with the specified detail message and mode as the type of error
 
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_INVALID_TYPE

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

GUIWriterException

public GUIWriterException(java.lang.String msg,
                          int mode)
Constructs an instance of GUIWriterException with the specified detail message and mode as the type of error

Parameters:
msg - the detail message.
mode - Type of error
Method Detail

getErrorCode

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