org.jasen.error
Class JasenParseException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.jasen.error.JasenException
              extended byorg.jasen.error.JasenParseException
All Implemented Interfaces:
Serializable

public class JasenParseException
extends JasenException

Thrown when an error occurs during parsing of a MimeMessage.

Author:
Jason Polites
See Also:
Serialized Form

Constructor Summary
JasenParseException(ParseErrorType type)
          Creates a new JasenParseException of the given type
JasenParseException(String message, ParseErrorType type)
          Creates a new JasenParseException of the given type
JasenParseException(String message, Throwable cause, ParseErrorType type)
          Creates a new JasenParseException of the given type
JasenParseException(Throwable cause, ParseErrorType type)
          Creates a new JasenParseException of the given type
 
Method Summary
 ParseErrorType getType()
          Gets the type of parse error
 
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

JasenParseException

public JasenParseException(ParseErrorType type)
Creates a new JasenParseException of the given type

Parameters:
type -

JasenParseException

public JasenParseException(String message,
                           ParseErrorType type)
Creates a new JasenParseException of the given type

Parameters:
message -
type -

JasenParseException

public JasenParseException(String message,
                           Throwable cause,
                           ParseErrorType type)
Creates a new JasenParseException of the given type

Parameters:
message -
cause -
type -

JasenParseException

public JasenParseException(Throwable cause,
                           ParseErrorType type)
Creates a new JasenParseException of the given type

Parameters:
cause -
type -
Method Detail

getType

public ParseErrorType getType()
Gets the type of parse error

Returns:
Returns the type