/**
* @author Ma Bingyao(andot@ujn.edu.cn)
* @copyright CoolCode.CN
* @package JAVA_PHPRPC_CLIENT
* @version 2.1
* @last_update 2006-08-09
* @link http://www.coolcode.cn/?p=205
*/
package org.phprpc;
import java.lang.*;
public class PHPRPCError extends Exception {
private int __errno;
private String __errstr;
protected PHPRPCError(int errno, String errstr)
{
this.__errno = errno;
this.__errstr = errstr;
}
public int getNumber() {
return this.__errno;
}
public String getMessage() {
return this.__errstr;
}
public String toString() {
return this.__errno + ":" + this.__errstr;
}
}