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
*/
public class RPCError {
public final int code;
public final String message;
public final Object data;
public final int code;
public final String message;
public final Object data;
/**
* Creates the error.
*
* @param code the code
* @param message the message
* @param data the data
*/
public RPCError(int code, String message, Object data) {
this.code = code;
this.message = message;
this.data = data;
}
/**
* Creates the error.
*
* @param code the code
* @param message the message
* @param data the data
*/
public RPCError(int code, String message, Object data) {
this.code = code;
this.message = message;
this.data = data;
}
/**
* @return the code
*/
int getCode() {
return code;
}
/**
* @return the code
*/
int getCode() {
return code;
}
/**
* @return the message
*/
String getMessage() {
return message;
}
/**
* @return the message
*/
String getMessage() {
return message;
}
/**
* @return the data
*/
Object getData() {
return data;
}
/**
* @return the data
*/
Object getData() {
return data;
}
}