initial commit
This commit is contained in:
14
src/nis/nms/exceptions/ActionException.java
Normal file
14
src/nis/nms/exceptions/ActionException.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package nis.nms.exceptions;
|
||||
|
||||
public class ActionException extends Throwable{
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -5023210023154666241L;
|
||||
|
||||
//在本类中处理Action抛出的所有异常
|
||||
public String getMessage(){
|
||||
String message = super.getMessage();
|
||||
return message;
|
||||
}
|
||||
}
|
||||
28
src/nis/nms/exceptions/BusinessException.java
Normal file
28
src/nis/nms/exceptions/BusinessException.java
Normal file
@@ -0,0 +1,28 @@
|
||||
package nis.nms.exceptions;
|
||||
|
||||
/**
|
||||
* This exception is used to mark business rule violations.
|
||||
*
|
||||
* @author Christian Bauer <christian@hibernate.org>
|
||||
*/
|
||||
public class BusinessException extends RuntimeException {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 1275639675329076996L;
|
||||
|
||||
public BusinessException() {}
|
||||
|
||||
public BusinessException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public BusinessException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
public BusinessException(Throwable cause) {
|
||||
super(cause);
|
||||
}
|
||||
}
|
||||
29
src/nis/nms/exceptions/InfrastructureException.java
Normal file
29
src/nis/nms/exceptions/InfrastructureException.java
Normal file
@@ -0,0 +1,29 @@
|
||||
package nis.nms.exceptions;
|
||||
|
||||
/**
|
||||
* This exception is used to mark (fatal) failures in infrastructure and system code.
|
||||
*
|
||||
* @author Christian Bauer <christian@hibernate.org>
|
||||
*/
|
||||
public class InfrastructureException extends RuntimeException {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -5335364504120567232L;
|
||||
|
||||
public InfrastructureException() {
|
||||
}
|
||||
|
||||
public InfrastructureException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public InfrastructureException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
public InfrastructureException(Throwable cause) {
|
||||
super(cause);
|
||||
}
|
||||
}
|
||||
28
src/nis/nms/exceptions/PermissionException.java
Normal file
28
src/nis/nms/exceptions/PermissionException.java
Normal file
@@ -0,0 +1,28 @@
|
||||
package nis.nms.exceptions;
|
||||
|
||||
/**
|
||||
* This exception is used to mark access violations.
|
||||
*
|
||||
* @author Christian Bauer <christian@hibernate.org>
|
||||
*/
|
||||
public class PermissionException extends RuntimeException {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -772079756143217225L;
|
||||
|
||||
public PermissionException() {}
|
||||
|
||||
public PermissionException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public PermissionException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
public PermissionException(Throwable cause) {
|
||||
super(cause);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user