From defceef8afef538555c13d33e344a89a828a3d97 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Fri, 20 Dec 2013 12:35:28 +0100 Subject: inital --- .../gv/util/client/mis/usp/USPClientException.java | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/main/java/at/gv/util/client/mis/usp/USPClientException.java (limited to 'src/main/java/at/gv/util/client/mis/usp/USPClientException.java') diff --git a/src/main/java/at/gv/util/client/mis/usp/USPClientException.java b/src/main/java/at/gv/util/client/mis/usp/USPClientException.java new file mode 100644 index 0000000..3c36ccb --- /dev/null +++ b/src/main/java/at/gv/util/client/mis/usp/USPClientException.java @@ -0,0 +1,33 @@ +package at.gv.util.client.mis.usp; + +public class USPClientException extends Exception { + + private static final long serialVersionUID = 5173056345209288701L; + + private int code = -1; + + public USPClientException(int code) { + super(); + this.code = code; + } + + public USPClientException(String message, int code, Throwable cause) { + super(message, cause); + this.code = code; + } + + public USPClientException(String message, int code) { + super(message); + this.code = code; + } + + public USPClientException(int code, Throwable cause) { + super(cause); + this.code = code; + } + + public int getCode() { + return this.code; + } + +} -- cgit v1.2.3