public class SolclientException
extends java.lang.RuntimeException
SolEnum.ReturnCode
SolclientErrorInfo
Constructor and Description |
---|
SolclientException(SolclientErrorInfo errorInfo,
int returnCode)
Constructs the exception having a message based on the details of
SolclientErrorInfo and the
SolEnum.ReturnCode |
SolclientException(java.lang.String message,
int returnCode)
Constructs the exception having a message and a
SolEnum.ReturnCode |
SolclientException(java.lang.String message,
SolclientErrorInfo errorInfo,
int returnCode)
Constructs the exception based on the message parameter with appended
details of
SolclientErrorInfo and the
SolEnum.ReturnCode |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage()
Returns a formatted error message with the numerical and string
representation of the
SolEnum.ReturnCode Details of the SolclientErrorInfo may be ommited in the message
if none was available. |
int |
getReturnCode()
Returns the
SolEnum.ReturnCode at the time of the exception. |
SolclientErrorInfo |
getSolclientErrorInfo()
Returns the available
SolclientErrorInfo when the exception was
raised. |
public SolclientException(java.lang.String message, SolclientErrorInfo errorInfo, int returnCode)
SolclientErrorInfo
and the
SolEnum.ReturnCode
message
- errorInfo
- SolclientErrorInfo
returnCode
- SolEnum.ReturnCode
public SolclientException(SolclientErrorInfo errorInfo, int returnCode)
SolclientErrorInfo
and the
SolEnum.ReturnCode
errorInfo
- SolclientErrorInfo
returnCode
- SolEnum.ReturnCode
public SolclientException(java.lang.String message, int returnCode)
SolEnum.ReturnCode
message
- returnCode
- SolEnum.ReturnCode
public SolclientErrorInfo getSolclientErrorInfo()
SolclientErrorInfo
when the exception was
raised.SolclientErrorInfo
public java.lang.String getMessage()
SolEnum.ReturnCode
SolclientErrorInfo
may be ommited in the message
if none was available.getMessage
in class java.lang.Throwable
public int getReturnCode()
SolEnum.ReturnCode
at the time of the exception.SolEnum.ReturnCode
Copyright 2004-2024 Solace Corporation. All rights reserved.