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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
package org.apache.qpid.nclient.core;
import org.apache.log4j.Logger;
import org.apache.qpid.AMQException;
public class AMQPException extends Exception
{
private int _errorCode;
public AMQPException(String message)
{
super(message);
}
public AMQPException(String msg, Throwable t)
{
super(msg, t);
}
public AMQPException(int errorCode, String msg, Throwable t)
{
super(msg + " [error code " + errorCode + ']', t);
_errorCode = errorCode;
}
public AMQPException(int errorCode, String msg)
{
super(msg + " [error code " + errorCode + ']');
_errorCode = errorCode;
}
public AMQPException(Logger logger, String msg, Throwable t)
{
this(msg, t);
logger.error(getMessage(), this);
}
public AMQPException(Logger logger, String msg)
{
this(msg);
logger.error(getMessage(), this);
}
public AMQPException(Logger logger, int errorCode, String msg)
{
this(errorCode, msg);
logger.error(getMessage(), this);
}
public int getErrorCode()
{
return _errorCode;
}
}
|