diff options
Diffstat (limited to 'client/Piztor/src/com/macaroon/piztor/EException.java')
-rw-r--r-- | client/Piztor/src/com/macaroon/piztor/EException.java | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/client/Piztor/src/com/macaroon/piztor/EException.java b/client/Piztor/src/com/macaroon/piztor/EException.java new file mode 100644 index 0000000..5ce1fdb --- /dev/null +++ b/client/Piztor/src/com/macaroon/piztor/EException.java @@ -0,0 +1,75 @@ +package com.macaroon.piztor; + + + +public class EException extends Exception { + + static final int EConnectedFailedException =101; + static final int ETimeOutException =102; + static final int EJavaHostException =103; + static final int EPushFailedException =104; + static final int EIOException =105; + static final int EUnknownHostException =106; + static final int EStatusFailedException =107; + + + private static final long serialVersionUID = 100L; + int Rtype; + int Etype; + long time; + public EException(int e,int r,long timep) { + super(); + Rtype = r; + Etype = e; + time = timep; + } + } + + class EConnectFailedException extends EException{ + private static final long serialVersionUID = 101L; + public EConnectFailedException(int t,long timep) { + super(101,t,timep); + } + } + + class ETimeOutException extends EException{ + private static final long serialVersionUID = 102L; + public ETimeOutException(int t,long timep) { + super(102,t,timep); + } + } + + class EJavaHostException extends EException{ + private static final long serialVersionUID = 103L; + public EJavaHostException(int t,long timep) { + super(103,t,timep); + } + } + + class EPushFailedException extends EException{ + private static final long serialVersionUID = 104L; + public EPushFailedException(int t,long timep) { + super(104,t,timep); + } + } + + class EIOException extends EException{ + private static final long serialVersionUID = 105L; + public EIOException(int t,long timep) { + super(105,t,timep); + } + } + + class EUnknownHostException extends EException{ + private static final long serialVersionUID = 106L; + public EUnknownHostException(int t,long timep) { + super(106,t,timep); + } + } + + class EStatusFailedException extends EException{ + private static final long serialVersionUID = 107L; + public EStatusFailedException(int t,long timep) { + super(107,t,timep); + } + }
\ No newline at end of file |