com.webobjects.appserver.xml
Class WOXMLException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--com.webobjects.foundation.NSForwardException
|
+--com.webobjects.appserver.xml.WOXMLException
- All Implemented Interfaces:
- Serializable
- public class WOXMLException
- extends NSForwardException
This class serves to wrap a number of exceptions that can arise during the parsing
process, reducing the number of exceptions your code has to catch. In particular, exceptions
that are thrown by the SAX parser are encapsulated in WOXMLException objects and then
re-thrown.
- See Also:
- Serialized Form
Method Summary |
String |
getMessage()
Gets the error message string of this exception object. |
String |
toString()
Returns a short description of this exception object. |
WOXMLException
public WOXMLException(Throwable wrapped,
String extraMessage)
- Creates a WOXMLException that wraps an exception and an extra text string. The text string
is prepended to the eventual exception message retrieved.
- Parameters:
wrapped
- an exception that needs to be wrapped in this exceptionextraMessage
- an extra text string explaining the exception further
WOXMLException
public WOXMLException(Throwable wrapped)
- Creates a WOXMLException that wraps an exception.
- Parameters:
wrapped
- an exception that needs to be wrapped in this exception
WOXMLException
public WOXMLException(String extraMessage)
- Creates a WOXMLException that contains an exception message.
- Parameters:
extraMessage
- an extra text string explaining the exception
getMessage
public String getMessage()
- Gets the error message string of this exception object.
- Overrides:
getMessage
in class Throwable
- Returns:
- the error message string of this object; if the object was created with an extra
text string, it will be prepended to the original error message;
null
is
return if there is no error message at all.
toString
public String toString()
- Returns a short description of this exception object. If this object was created with an
extra error message string, then the result is the concatenation of 2 strings:
- the extra error message
- ": " (a colon and a space. only when the extra error message is present)
- the original exception's description
- Overrides:
toString
in class NSForwardException
- Returns:
- a string representation of this exception
Copyright © 2003 Apple Computer, Inc.