org.pz.platypus.exceptions
Class PlatyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.pz.platypus.exceptions.PlatyException
All Implemented Interfaces:
java.io.Serializable, IException
Direct Known Subclasses:
EolTreatmentException, FileCloseException, InvalidConfigFileException

public class PlatyException
extends java.lang.RuntimeException
implements IException

Basic template for all Platypus-specific runtime exceptions

Author:
alb
See Also:
Serialized Form

Field Summary
private  java.lang.String explanation
          a string to look up in Literals() that identifies the nature of the exception
private  java.lang.String location
          any method-specific string that adds further info about the location or context of the exception;
 
Constructor Summary
PlatyException(java.lang.String explain)
           
PlatyException(java.lang.String explain, java.lang.String locate)
          The most common form of constructor
 
Method Summary
 java.lang.String getExplanation()
           
 java.lang.String getLocation()
           
 
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

explanation

private java.lang.String explanation
a string to look up in Literals() that identifies the nature of the exception


location

private java.lang.String location
any method-specific string that adds further info about the location or context of the exception;

Constructor Detail

PlatyException

public PlatyException(java.lang.String explain)
Parameters:
explain - literal to look up in Literals that explains the problem

PlatyException

public PlatyException(java.lang.String explain,
                      java.lang.String locate)
The most common form of constructor

Parameters:
explain - literal to look up in Literals that explains the problem
locate - any additional info that might indicate location
Method Detail

getExplanation

public java.lang.String getExplanation()
Specified by:
getExplanation in interface IException

getLocation

public java.lang.String getLocation()
Specified by:
getLocation in interface IException


Copyright © 2008-10 Pacific Data Works LLC