net.scheinerman.phoenix.interpreter.exceptions
Class IOException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.scheinerman.phoenix.interpreter.exceptions.PhoenixRuntimeException
                  extended by net.scheinerman.phoenix.interpreter.exceptions.IOException
All Implemented Interfaces:
java.io.Serializable

public class IOException
extends PhoenixRuntimeException

This is the root of all I/O based exceptions that can be thrown during Phoenix program execution. Any program that has a I/O error in its code should throw an instance of this class or any of its subclasses. This class allows for alternate messages to be passed in via the constructor. Thus, depending on the instance that this exception is thrown, a different message might be displayed in the output.

Since:
1.5
Version:
1.0
Author:
Jonah Scheinerman
See Also:
PhoenixRuntimeException}, Serialized Form

Field Summary
private  java.lang.String briefMessage
          "Generic IO error"
private static long serialVersionUID
           
 
Constructor Summary
IOException()
          Creates a new IOException with no brief message, meaning that the result of getBriefMessage() will be "Generic IO error"
IOException(java.lang.String briefMessage)
          Creates a new IOException with the specified brief message which then be the return value from a call to getBriefMessage().
 
Method Summary
 java.lang.String getBriefMessage()
          Returns a generic brief message if no message was provided to the constructor.
 java.lang.String getErrorType()
          Returns the standard error type for io errors.
 
Methods inherited from class net.scheinerman.phoenix.interpreter.exceptions.PhoenixRuntimeException
getLastLine, isLastLineSet, printErrorMessage, setLastLine, setLastLineSet
 
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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

briefMessage

private java.lang.String briefMessage
"Generic IO error"

Constructor Detail

IOException

public IOException()
Creates a new IOException with no brief message, meaning that the result of getBriefMessage() will be "Generic IO error"


IOException

public IOException(java.lang.String briefMessage)
Creates a new IOException with the specified brief message which then be the return value from a call to getBriefMessage().

Parameters:
briefMessage - - a new brief message
Method Detail

getErrorType

public java.lang.String getErrorType()
Returns the standard error type for io errors.

Overrides:
getErrorType in class PhoenixRuntimeException
Returns:
"IO error"

getBriefMessage

public java.lang.String getBriefMessage()
Returns a generic brief message if no message was provided to the constructor.

Overrides:
getBriefMessage in class PhoenixRuntimeException
Returns:
"Generic IO error"