public class SolclientErrorInfo
extends java.lang.Object
SolclientErrorInfo
can be obtained from
Solclient.getLastErrorInfo()
.SolclientErrorInfo
accompanies a raised
SolclientException
Constructor and Description |
---|
SolclientErrorInfo(int responseCode,
int subCode,
java.lang.String errorStr)
Constructs this data structure with the provided attributes.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorStr()
An information error string for certain types of subcodes (an empty
string if not used).
|
int |
getResponseCode()
A response code that is returned by the Appliance for some
SolEnum.SubCode
otherwise zero. |
int |
getSubCode() |
java.lang.String |
toString()
Provides a formatted representation of the error, containing the
errorStr, a numerical and String representation of the
SolEnum.SubCode
, and the numerical representation of the responseCode. |
public SolclientErrorInfo(int responseCode, int subCode, java.lang.String errorStr)
responseCode
- subCode
- SolEnum.SubCode
errorStr
- public java.lang.String getErrorStr()
public int getResponseCode()
SolEnum.SubCode
otherwise zero.public int getSubCode()
SolEnum.SubCode
public java.lang.String toString()
SolEnum.SubCode
, and the numerical representation of the responseCode.toString
in class java.lang.Object
Copyright 2004-2024 Solace Corporation. All rights reserved.