Add XMLRPC Exception

This commit is contained in:
Aria 2023-06-13 20:02:01 -07:00
parent 4296ec0ba6
commit 9a1c71967b

View file

@ -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 ();
}
}