com.cysols.iodef
Class XMLValidationError

java.lang.Object
  extended by java.lang.Throwable
      extended by com.cysols.iodef.XMLValidationError
All Implemented Interfaces:
Serializable

public class XMLValidationError
extends Throwable

Encapsulate an XML validation error or warning.

Author:
cysol
See Also:
Serialized Form

Constructor Summary
XMLValidationError(SAXParseException error)
          Constructs a XMLValidationError with error instance.
 
Method Summary
 void addError(SAXParseException error)
          Appends the specified element to the end of error list.
 String getMessage()
          Create the message in which all error is included.
 String[] getMessages()
          Creates the array of error message,
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

XMLValidationError

public XMLValidationError(SAXParseException error)
Constructs a XMLValidationError with error instance. Appends the specified element to error list.

Parameters:
error - exeption instance.
Method Detail

addError

public void addError(SAXParseException error)
Appends the specified element to the end of error list.

Parameters:
error - exeption instance.

getMessages

public String[] getMessages()
Creates the array of error message,

Returns:
array of error message

getMessage

public String getMessage()
Create the message in which all error is included.

Overrides:
getMessage in class Throwable
Returns:
the message in which all error is included.