initial commit

This commit is contained in:
chenjinsong
2018-09-27 16:21:05 +08:00
commit dc91c4c987
2011 changed files with 408920 additions and 0 deletions

View 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;
}
}

View 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);
}
}

View 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);
}
}

View 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);
}
}