@InterfaceAudience.Private public class XException extends Exception
| Modifier and Type | Class and Description |
|---|---|
static interface |
XException.ERROR
Interface to define error codes.
|
| Constructor and Description |
|---|
XException(XException.ERROR error,
Object... params)
Creates an XException using the specified error code.
|
XException(XException cause)
Creates an XException using another XException as cause.
|
| Modifier and Type | Method and Description |
|---|---|
XException.ERROR |
getError()
Returns the error code of the exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic XException(XException cause)
The error code and error message are extracted from the cause.
cause - exception cause.public XException(XException.ERROR error, Object... params)
error - error code for the XException.params - parameters to use when creating the error message
with the error code template.public XException.ERROR getError()
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.