Javolution 6.0.0 java
javolution.xml.stream.XMLStreamException Class Reference
Inheritance diagram for javolution.xml.stream.XMLStreamException:
[legend]
Collaboration diagram for javolution.xml.stream.XMLStreamException:
[legend]

Public Member Functions

 XMLStreamException ()
 
 XMLStreamException (String msg)
 
 XMLStreamException (Throwable nested)
 
 XMLStreamException (String msg, Throwable nested)
 
 XMLStreamException (String msg, Location location, Throwable nested)
 
 XMLStreamException (String msg, Location location)
 
Throwable getNestedException ()
 
Location getLocation ()
 
String toString ()
 

Private Attributes

Throwable _nested
 
Location _location
 

Static Private Attributes

static final long serialVersionUID = 1L
 

Detailed Description

This class represents the base exception for unexpected processing errors.

Author
Jean-Marie Dautelle
Version
3.8, May 22, 2006

Definition at line 17 of file XMLStreamException.java.

Constructor & Destructor Documentation

◆ XMLStreamException() [1/6]

javolution.xml.stream.XMLStreamException.XMLStreamException ( )

Default constructor

Definition at line 32 of file XMLStreamException.java.

32  {
33  super();
34  }

◆ XMLStreamException() [2/6]

javolution.xml.stream.XMLStreamException.XMLStreamException ( String  msg)

Constructs an exception with the assocated message.

Parameters
msgthe message to report.

Definition at line 41 of file XMLStreamException.java.

41  {
42  super(msg);
43  }

◆ XMLStreamException() [3/6]

javolution.xml.stream.XMLStreamException.XMLStreamException ( Throwable  nested)

Constructs an exception with the assocated nested exception.

Parameters
nestedthe nested exception.

Definition at line 50 of file XMLStreamException.java.

50  {
51  _nested = nested;
52  }

References javolution.xml.stream.XMLStreamException._nested.

◆ XMLStreamException() [4/6]

javolution.xml.stream.XMLStreamException.XMLStreamException ( String  msg,
Throwable  nested 
)

Constructs an exception with the assocated message and exception.

Parameters
msgthe message to report.
nestedthe nested exception.

Definition at line 60 of file XMLStreamException.java.

60  {
61  super(msg);
62  _nested = nested;
63  }

References javolution.xml.stream.XMLStreamException._nested.

◆ XMLStreamException() [5/6]

javolution.xml.stream.XMLStreamException.XMLStreamException ( String  msg,
Location  location,
Throwable  nested 
)

Constructs an exception with the assocated message, exception and location.

Parameters
msgthe message to report.
locationthe location.
nestedthe nested exception.

Definition at line 73 of file XMLStreamException.java.

73  {
74  super(msg);
75  _nested = nested;
76  _location = location;
77  }

References javolution.xml.stream.XMLStreamException._location, and javolution.xml.stream.XMLStreamException._nested.

◆ XMLStreamException() [6/6]

javolution.xml.stream.XMLStreamException.XMLStreamException ( String  msg,
Location  location 
)

Constructs an exception with the assocated message, exception and location.

Parameters
msgthe message to report
locationthe location of the error

Definition at line 86 of file XMLStreamException.java.

86  {
87  super(msg);
88  _location = location;
89  }

References javolution.xml.stream.XMLStreamException._location.

Member Function Documentation

◆ getLocation()

Location javolution.xml.stream.XMLStreamException.getLocation ( )

Returns the location of the exception.

Returns
the location of the exception or null if none is available

Definition at line 106 of file XMLStreamException.java.

106  {
107  return _location;
108  }

References javolution.xml.stream.XMLStreamException._location.

◆ getNestedException()

Throwable javolution.xml.stream.XMLStreamException.getNestedException ( )

Returns the nested exception.

Returns
the nested exception

Definition at line 96 of file XMLStreamException.java.

96  {
97  return _nested;
98  }

References javolution.xml.stream.XMLStreamException._nested.

Referenced by javolution.xml.sax.XMLReaderImpl.parse().

Here is the caller graph for this function:

◆ toString()

String javolution.xml.stream.XMLStreamException.toString ( )

Returns the textual representation of this exception.

Returns
the string representation of the exception.

Definition at line 115 of file XMLStreamException.java.

115  {
116  String msg = super.toString();
117  if (_location != null) {
118  msg += " (at line " + _location.getLineNumber() + ", column "
119  + _location.getColumnNumber() + ")";
120  }
121  if (_nested != null) {
122  msg += " caused by " + _nested.toString();
123  }
124  return msg;
125  }

References javolution.xml.stream.XMLStreamException._location, javolution.xml.stream.XMLStreamException._nested, javolution.xml.stream.Location.getColumnNumber(), and javolution.xml.stream.Location.getLineNumber().

Here is the call graph for this function:

Member Data Documentation

◆ _location

Location javolution.xml.stream.XMLStreamException._location
private

◆ _nested

Throwable javolution.xml.stream.XMLStreamException._nested
private

◆ serialVersionUID

final long javolution.xml.stream.XMLStreamException.serialVersionUID = 1L
staticprivate

Definition at line 127 of file XMLStreamException.java.


The documentation for this class was generated from the following file:
javolution.xml.stream.Location.getColumnNumber
int getColumnNumber()
javolution.xml.stream.XMLStreamException._location
Location _location
Definition: XMLStreamException.java:27
javolution.xml.stream.XMLStreamException._nested
Throwable _nested
Definition: XMLStreamException.java:22
javolution.xml.stream.Location.getLineNumber
int getLineNumber()