This commit is contained in:
crusader 2018-04-24 22:07:29 +09:00
parent 0d87d36859
commit dedf3ee9fe

View File

@ -4,41 +4,41 @@ package com.loafle.commons.rpc.protocol;
* Error * Error
*/ */
public class RPCError { public class RPCError {
public final int code; public final int code;
public final String message; public final String message;
public final Object data; public final Object data;
/** /**
* Creates the error. * Creates the error.
* *
* @param code the code * @param code the code
* @param message the message * @param message the message
* @param data the data * @param data the data
*/ */
public RPCError(int code, String message, Object data) { public RPCError(int code, String message, Object data) {
this.code = code; this.code = code;
this.message = message; this.message = message;
this.data = data; this.data = data;
} }
/** /**
* @return the code * @return the code
*/ */
int getCode() { int getCode() {
return code; return code;
} }
/** /**
* @return the message * @return the message
*/ */
String getMessage() { String getMessage() {
return message; return message;
} }
/** /**
* @return the data * @return the data
*/ */
Object getData() { Object getData() {
return data; return data;
} }
} }