public class AlarmAspect extends Object
Constructor and Description |
---|
AlarmAspect() |
Modifier and Type | Method and Description |
---|---|
void |
classPointcut() |
void |
methodPointcut() |
void |
sendClassAlarm(RuntimeException ex,
AlarmOnException alarmOnException) |
void |
sendMethodAlarm(RuntimeException ex,
AlarmOnException alarmOnException) |
void |
setAlarmSender(AlarmSender value) |
void |
setIncludeStackTrace(int lines)
You can set if the alarm message should include the stack trace, in number of lines
(0 means don't include the stack trace, -1 means include the whole thing).
|
void |
setMessage(String value)
Specifies the message to be used in the alarm.
|
public void setIncludeStackTrace(int lines)
public void setMessage(String value)
public void setAlarmSender(AlarmSender value)
public void classPointcut()
public void methodPointcut()
public void sendClassAlarm(RuntimeException ex, AlarmOnException alarmOnException)
public void sendMethodAlarm(RuntimeException ex, AlarmOnException alarmOnException)