org.abstracthorizon.mercury.smtp.exception
Class ParserException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.abstracthorizon.danube.connection.ConnectionException
                  extended by org.abstracthorizon.mercury.common.command.CommandException
                      extended by org.abstracthorizon.mercury.smtp.exception.SMTPCommandException
                          extended by org.abstracthorizon.mercury.smtp.exception.ParserException
All Implemented Interfaces:
Serializable

public class ParserException
extends SMTPCommandException

Parser exception

Author:
Daniel Sendula
See Also:
Serialized Form

Constructor Summary
ParserException()
          Constructor
ParserException(boolean missing, String msg)
          Constructor
ParserException(String msg)
          Constructor - it constructs message "Syntax error - expected <" + msg + ">"
 
Method Summary
protected static String compose(boolean missing, String msg)
          Composes string "Syntax error - expected " + msg.
 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
 

Constructor Detail

ParserException

public ParserException()
Constructor


ParserException

public ParserException(String msg)
Constructor - it constructs message "Syntax error - expected <" + msg + ">"

Parameters:
msg - message

ParserException

public ParserException(boolean missing,
                       String msg)
Constructor

Parameters:
missing - is message name of missing element
msg - message
Method Detail

compose

protected static String compose(boolean missing,
                                String msg)
Composes string "Syntax error - expected " + msg.

Parameters:
missing - is message name of missing element
msg - message
Returns:
new string

toString

public String toString()
Overrides:
toString in class Throwable


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.