Class ApiException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.insightful.splusserver.exception.BaseException
-
- com.insightful.splusserver.exception.api.ApiException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ServerCreationException
public class ApiException extends BaseException
This class represents exceptions thrown by the Java Api. It might embed another exception.- Author:
- TIBCO
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ApiException()
Constructs anApiException
object, which contains information about API exceptions.ApiException(BridgeException exception)
Constructs anApiException
object that embeds another exception.ApiException(java.lang.String message)
Constructs anApiException
object, which captures a string containing information about the exception.ApiException(java.lang.String message, java.lang.Throwable exception)
Constructs anApiException
object that contains an embedded exception, and which captures a string containing information about the exception.ApiException(java.lang.Throwable exception)
Constructs anApiException
object that embeds another exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getXml()
Returning XML representation representing the exception.int
ordinal()
Returning id of exception to facilitate unmarshaling XML representation back into Java object
-
-
-
Constructor Detail
-
ApiException
public ApiException()
Constructs anApiException
object, which contains information about API exceptions.
-
ApiException
public ApiException(java.lang.String message)
Constructs anApiException
object, which captures a string containing information about the exception.- Parameters:
message
- A string containing information about the exception.
-
ApiException
public ApiException(java.lang.Throwable exception)
Constructs anApiException
object that embeds another exception.- Parameters:
exception
- The embedded exception.
-
ApiException
public ApiException(java.lang.String message, java.lang.Throwable exception)
Constructs anApiException
object that contains an embedded exception, and which captures a string containing information about the exception.- Parameters:
message
- A string containing information about the exception.exception
- The embedded exception.
-
ApiException
public ApiException(BridgeException exception)
Constructs anApiException
object that embeds another exception.- Parameters:
exception
- The embedded exception.
-
-
Method Detail
-
ordinal
public int ordinal()
Returning id of exception to facilitate unmarshaling XML representation back into Java object- Specified by:
ordinal
in classBaseException
- Returns:
- Id of exception as
int
-
getXml
public java.lang.String getXml()
Returning XML representation representing the exception.- Overrides:
getXml
in classBaseException
- Returns:
- XML representation of exception as a
String
-
-