public final class RpcException extends Exception
RpcHandler to indicate application-level errors.
By throwing this exception in the RpcHandler.process(Jid, String, java.util.List) method a <fault/> will be returned.
| Constructor and Description |
|---|
RpcException(int faultCode,
String faultString)
Creates a RPC exception.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFaultCode()
Gets the fault code.
|
String |
getFaultString()
Gets the fault string.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RpcException(int faultCode,
String faultString)
faultCode - The fault code. It is up to the server implementer, or higher-level standards to specify fault codes.faultString - The fault string, i.e. error message.public int getFaultCode()
public String getFaultString()
Copyright © 2014–2016 XMPP.rocks. All rights reserved.