Changement du nom de paquetage pour les exceptions

This commit is contained in:
Bertrand BRUN 2011-02-12 12:00:22 +01:00
parent d13741795a
commit 971a71bf99

View File

@ -1,4 +1,4 @@
package exception;
package org.pticlic.exception;
import java.io.Serializable;
@ -9,7 +9,7 @@ public class PtiClicException extends Exception {
private static final long serialVersionUID = 1L;
private Error error;
private static class Error implements Serializable {
public static class Error implements Serializable {
private static final long serialVersionUID = 1L;
private int num;
@ -31,6 +31,10 @@ public class PtiClicException extends Exception {
}
}
public PtiClicException(Error error) {
this.error = error;
}
public PtiClicException(int num, String msg) {
this.error = new Error(num, msg);
}