public class EngineException
extends com.apama.util.CompoundException
An EngineException is thrown by various methods of classes in the Engine Client SDK if any problems are encountered. It is simply a subclass of CompoundException with a different name to enable finer grained exception handling.
The subclass of this exception, InterruptedEngineException
, signifies that the
calling thread has been interrupted; it does not mean a communication error has occurred.
The EngineException provides (via the superclass) a mechanism to wrap any other exception
(any subclass of Throwable
) so that the
API of the Engine CLient SDK can provide a simpler common interface.
Constructor and Description |
---|
EngineException(java.lang.String msg)
Create a simple exception with the given message.
|
EngineException(java.lang.String msg,
java.lang.String[] warnings)
Create a simple exception with the given message.
|
EngineException(java.lang.String msg,
java.lang.Throwable wrappedException)
Create a compound exception with the given message and that references the given exception.
|
EngineException(java.lang.Throwable t)
Create a compound exception that references the given exception.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getWarnings()
Get an array of warnings which might have been returned along
with the error.
|
java.lang.Throwable |
getWrappedException()
Deprecated.
This method has been renamed to
CompoundException.getCause() as part
of an API review and may be deleted in a future release. |
getCause, getNestedException, getRootCause, hasNestedException
public EngineException(java.lang.String msg, java.lang.String[] warnings)
msg
- the message for the new exception.warnings
- the array of warnings to be included in the exceptionpublic EngineException(java.lang.String msg)
msg
- the message for the new exception.public EngineException(java.lang.Throwable t)
t
- the exception to be wrapped.public EngineException(java.lang.String msg, java.lang.Throwable wrappedException)
msg
- the message for the new exception.wrappedException
- the exception to be wrapped.public java.lang.String[] getWarnings()
@Deprecated public java.lang.Throwable getWrappedException()
CompoundException.getCause()
as part
of an API review and may be deleted in a future release.CompoundException.getCause()
Submit a bug or feature
Copyright (c) 2013-2022 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.