blob: 2081fafe299d81a15ffda33cda84abebd1831bb9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
package org.msgpack;
public class UnpackException extends MessagePackException
{
public static final int EXTRA_BYTES = 1;
public static final int INSUFFICIENT_BYTES = 0;
public static final int PARSE_ERROR = -1;
private int errorCode;
private Object data;
public UnpackException(String message, int errorCode)
{
super(message);
this.errorCode = errorCode;
}
public UnpackException(String message, int errorCode, Object data)
{
super(message);
this.errorCode = errorCode;
this.data = data;
}
public int getErrorCode()
{
return errorCode;
}
public Object getData()
{
return data;
}
}
|