biz.c24.io.api
Class ParserException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by biz.c24.io.api.ParserException
All Implemented Interfaces:
Serializable

public class ParserException
extends IOException

An exception signifying an error has occured whilst parsing a data model.

See Also:
Serialized Form

Constructor Summary
ParserException(String message, String node)
          Constructs a new instance with the specified message and node.
ParserException(Throwable cause, String node)
          Creates a new ParserException with the specified cause and node.
ParserException(ValidationResultEnum result, ParserError[] errors)
          Constructs a new instance with the specified result and list of errors.
ParserException(ValidationResultEnum result, String node, ParserError[] errors)
          Constructs a new instance with the specified result, node and list of errors.
ParserException(ValidationResultEnum result, String node, String message)
          Constructs a new instance with the specified result, node and message.
 
Method Summary
 Throwable getCause()
          Returns the cause.
 ParserError[] getErrors()
          Returns the array of errors.
 String getMessage()
           
 String getNode()
          Returns the node.
 ValidationResultEnum getResult()
          Returns the result code.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParserException

public ParserException(String message,
                       String node)
Constructs a new instance with the specified message and node.

Parameters:
message - The message.
node - The node that caused the exception.

ParserException

public ParserException(Throwable cause,
                       String node)
Creates a new ParserException with the specified cause and node.

Parameters:
cause - The cause of the exception.
node - The node that caused the exception.

ParserException

public ParserException(ValidationResultEnum result,
                       String node,
                       String message)
Constructs a new instance with the specified result, node and message.

Parameters:
result - The reson for the exception.
node - The node that caused the exception.
message - The mesage.

ParserException

public ParserException(ValidationResultEnum result,
                       String node,
                       ParserError[] errors)
Constructs a new instance with the specified result, node and list of errors.

Parameters:
result - The reson for the exception.
node - The node that caused the exception.
errors - The array of errors.

ParserException

public ParserException(ValidationResultEnum result,
                       ParserError[] errors)
Constructs a new instance with the specified result and list of errors.

Parameters:
result - The reson for the exception.
errors - The array of errors.
Method Detail

getResult

public ValidationResultEnum getResult()
Returns the result code.

Returns:
The result code.

getCause

public Throwable getCause()
Returns the cause.

Overrides:
getCause in class Throwable
Returns:
The cause, or null if no cause was specified.

getNode

public String getNode()
Returns the node.

Returns:
The node.

getErrors

public ParserError[] getErrors()
Returns the array of errors.

Returns:
The array of errors.

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable


C24 Technologies © 2002-2012: All Rights Reserved.