Package org.apache.uima.uimacpp
Class UimacppException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.uima.uimacpp.UimacppException
-
- All Implemented Interfaces:
java.io.Serializable
public class UimacppException extends java.lang.Exception
Use this class to signalize a fatal (internal) error to the API user.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.Exception
detail
Nested exception to hold wrapped exception.private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description UimacppException(java.lang.Exception ex)
Constructs aJTafRuntimeException
with the specified nested exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Exception
getEmbeddedException()
get the embedded exception, if any.java.lang.String
getMessage()
Returns a detail message.void
printStackTrace()
Prints the composite message toSystem.err
.void
printStackTrace(java.io.PrintStream ps)
Prints the composite message and the embedded stack trace to the specified print stream,ps
.void
printStackTrace(java.io.PrintWriter pw)
Prints the composite message and the embedded stack trace to the specified print writer,pw
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
detail
java.lang.Exception detail
Nested exception to hold wrapped exception.
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
Returns a detail message. If present, this will also include the nested exception.- Overrides:
getMessage
in classjava.lang.Throwable
-
printStackTrace
public void printStackTrace(java.io.PrintStream ps)
Prints the composite message and the embedded stack trace to the specified print stream,ps
.- Overrides:
printStackTrace
in classjava.lang.Throwable
- Parameters:
ps
- the print stream
-
printStackTrace
public void printStackTrace()
Prints the composite message toSystem.err
.- Overrides:
printStackTrace
in classjava.lang.Throwable
-
printStackTrace
public void printStackTrace(java.io.PrintWriter pw)
Prints the composite message and the embedded stack trace to the specified print writer,pw
- Overrides:
printStackTrace
in classjava.lang.Throwable
- Parameters:
pw
- the print writer
-
getEmbeddedException
public java.lang.Exception getEmbeddedException()
get the embedded exception, if any.- Returns:
- the embedded exception
-
-