diff options
author | mcentner <mcentner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2009-11-30 15:05:21 +0000 |
---|---|---|
committer | mcentner <mcentner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2009-11-30 15:05:21 +0000 |
commit | ebede55b888e8232cef37a2f4b40dbb0746dd28a (patch) | |
tree | 2091eee0c88bed1bcff5a6531d94bac92dc33ba2 /bkucommon/src/test/java/moaspss/SLException.java | |
parent | 2573a0bde88b31d08db21a57f296bacf7c99dc14 (diff) | |
download | mocca-ebede55b888e8232cef37a2f4b40dbb0746dd28a.tar.gz mocca-ebede55b888e8232cef37a2f4b40dbb0746dd28a.tar.bz2 mocca-ebede55b888e8232cef37a2f4b40dbb0746dd28a.zip |
Added test classes for creating a signature with MOCCA and sending it to MOA-SP for verification.
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@557 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'bkucommon/src/test/java/moaspss/SLException.java')
-rw-r--r-- | bkucommon/src/test/java/moaspss/SLException.java | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/bkucommon/src/test/java/moaspss/SLException.java b/bkucommon/src/test/java/moaspss/SLException.java new file mode 100644 index 00000000..4b43d6e7 --- /dev/null +++ b/bkucommon/src/test/java/moaspss/SLException.java @@ -0,0 +1,40 @@ +package moaspss; + +public class SLException extends Exception { + + private static final long serialVersionUID = 1L; + + private int code; + + private String info; + + public SLException() { + super(); + } + + public SLException(int code, String info) { + super(code + ": " + info); + this.code = code; + this.info = info; + } + + public SLException(Throwable cause, int code, String info) { + super(code + ": " + info, cause); + this.code = code; + this.info = info; + } + + public SLException(int code, Throwable cause) { + super(code + ": " + cause.getMessage(), cause); + this.code = code; + } + + public int getCode() { + return code; + } + + public String getInfo() { + return info; + } + +} |