Changement du nom de paquetage pour les exceptions
This commit is contained in:
parent
d13741795a
commit
971a71bf99
|
@ -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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user