org.genepattern.io
Class ParseException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.genepattern.io.ParseException
All Implemented Interfaces:
java.io.Serializable

public class ParseException
extends java.lang.Exception

Encapsulate a general error or warning from parsing a file.

This class can contain basic error or warning information from either the parser or the application: a parser writer or application writer can subclass it to provide additional functionality. Handlers may throw this exception or any exception subclassed from it.

If the application needs to pass through other types of exceptions, it must wrap those exceptions in a ParseException or an exception derived from a ParseException.

See Also:
Serialized Form

Constructor Summary
ParseException(java.lang.Exception e)
          Create a new ParseException wrapping an existing exception.
ParseException(java.lang.String message)
          Create a new ParseException.
ParseException(java.lang.String message, java.lang.Exception e)
          Create a new ParseException from an existing exception.
 
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
 

Constructor Detail

ParseException

public ParseException(java.lang.String message)
Create a new ParseException.

Parameters:
message - The error or warning message.

ParseException

public ParseException(java.lang.Exception e)
Create a new ParseException wrapping an existing exception.

The existing exception will be embedded in the new one, and its message will become the default message for the ParseException.

Parameters:
e - The exception to be wrapped in a ParseException.

ParseException

public ParseException(java.lang.String message,
                      java.lang.Exception e)
Create a new ParseException from an existing exception.

The existing exception will be embedded in the new one, but the new exception will have its own message.

Parameters:
message - The detail message.
e - The exception to be wrapped in a ParseException.


Hosted by docs.bugaco.com