standup.joke
Class GeneratorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by standup.joke.GeneratorException
All Implemented Interfaces:
Serializable

public class GeneratorException
extends Exception

A very simple subclass of Exception that is specifically for Exceptions arising from within the standup.joke package.

Author:
Ruli Manurung
See Also:
Serialized Form

Field Summary
(package private)  int errCode
           
(package private)  String errMsg
           
private static long serialVersionUID
           
 
Constructor Summary
GeneratorException(int _errCode, String _errMsg)
           
GeneratorException(String _err)
           
 
Method Summary
protected  String getErrorMessage()
           
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
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

errCode

int errCode

errMsg

String errMsg
Constructor Detail

GeneratorException

public GeneratorException(String _err)

GeneratorException

public GeneratorException(int _errCode,
                          String _errMsg)
Method Detail

getErrorMessage

protected String getErrorMessage()

toString

public String toString()
Overrides:
toString in class Throwable