Package org.apache.uima.uimacpp
Class UimacppException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.uima.uimacpp.UimacppException
- All Implemented Interfaces:
Serializable
Use this class to signalize a fatal (internal) error to the API user.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Exception
Nested exception to hold wrapped exception.private static final long
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aJTafRuntimeException
with the specified nested exception. -
Method Summary
Modifier and TypeMethodDescriptionget the embedded exception, if any.Returns a detail message.void
Prints the composite message toSystem.err
.void
Prints the composite message and the embedded stack trace to the specified print stream,ps
.void
Prints the composite message and the embedded stack trace to the specified print writer,pw
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
detail
Exception detailNested exception to hold wrapped exception.
-
-
Constructor Details
-
UimacppException
Constructs aJTafRuntimeException
with the specified nested exception.- Parameters:
ex
- the nested exception
-
-
Method Details
-
getMessage
Returns a detail message. If present, this will also include the nested exception.- Overrides:
getMessage
in classThrowable
-
printStackTrace
Prints the composite message and the embedded stack trace to the specified print stream,ps
.- Overrides:
printStackTrace
in classThrowable
- Parameters:
ps
- the print stream
-
printStackTrace
public void printStackTrace()Prints the composite message toSystem.err
.- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
Prints the composite message and the embedded stack trace to the specified print writer,pw
- Overrides:
printStackTrace
in classThrowable
- Parameters:
pw
- the print writer
-
getEmbeddedException
get the embedded exception, if any.- Returns:
- the embedded exception
-