public class JCSMPErrorResponseException extends JCSMPOperationException
JCSMPErrorResponseException
is used to capture Solace Message
Format (SMF) response codes.
These types of exceptions are not related to JCSMP. They are most likely caused by the application or the appliance's state.
Constructor and Description |
---|
JCSMPErrorResponseException(int responseCode,
String responsePhrase,
String responseBody,
String connectionInfoStr)
Construct a
JCSMPErrorResponseException |
Modifier and Type | Method and Description |
---|---|
String |
getConnectionInfoString() |
String |
getResponseBody() |
int |
getResponseCode() |
String |
getResponsePhrase() |
JCSMPErrorResponseSubcode |
getSubcode()
Deprecated.
|
int |
getSubcodeEx()
Gets the normalized subcode (
JCSMPErrorResponseSubcodeEx ) for this
error response. |
String |
toString() |
getExtraInfo, setExtraInfo
getCause, getMessage, getMessage, getMessages, getThrowable, getThrowableCount, getThrowables, indexOfThrowable, indexOfThrowable, printPartialStackTrace, printStackTrace, printStackTrace, printStackTrace
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace
public JCSMPErrorResponseException(int responseCode, String responsePhrase, String responseBody, String connectionInfoStr)
JCSMPErrorResponseException
responseCode
- The SMF response code.responsePhrase
- A short phrase associated with the response code.connectionInfoStr
- A string that output the connection's information to correlate this exception to a TCP connectionresponseBody
- The Content Subscription Management Protocol (CSMP) response message (in XML) itself, if present. Applications must
parse this XML content to find the detailed, CSMP-related error conditions.public String getResponseBody()
null
, if no CSMP response message is available.public int getResponseCode()
public String getResponsePhrase()
null
, if the phrase is not provided.public String getConnectionInfoString()
@Deprecated public JCSMPErrorResponseSubcode getSubcode()
JCSMPErrorResponseException.getSubcodeEx()
.JCSMPErrorResponseSubcode
) for this
error response.
JCSMPErrorResponseSubcode
is deprecated, use
getSubcodeEx()
.null
otherwise.public int getSubcodeEx()
JCSMPErrorResponseSubcodeEx
) for this
error response.0
otherwise.Copyright 2004-2024 Solace Corporation. All rights reserved.