Add XMLRPC Exception
This commit is contained in:
parent
4296ec0ba6
commit
9a1c71967b
1 changed files with 24 additions and 0 deletions
|
@ -0,0 +1,24 @@
|
|||
package dev.zontreck.ariaslib.xmlrpc;
|
||||
|
||||
|
||||
public class XmlRpcException extends Exception {
|
||||
public XmlRpcException ( int code , String message ) {
|
||||
super ( message );
|
||||
FaultCode = code;
|
||||
FaultString = message;
|
||||
|
||||
}
|
||||
|
||||
public final String FaultString;
|
||||
public final int FaultCode;
|
||||
|
||||
@Override
|
||||
public String toString ( ) {
|
||||
StringBuilder sb = new StringBuilder ( );
|
||||
sb.append ( "Code: " +FaultCode);
|
||||
sb.append ( "\nMessage: " +FaultString);
|
||||
sb.append ( "\n\n" );
|
||||
|
||||
return sb.toString ();
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue