org.owasp.esapi.errors
public class IntrusionException extends java.lang.RuntimeException
Unlike other exceptions in the ESAPI, the IntrusionException is a RuntimeException so that it can be thrown from anywhere and will not require a lot of special exception handling.
| Modifier and Type | Field and Description |
|---|---|
protected Logger |
logger
The logger.
|
protected java.lang.String |
logMessage |
| Constructor and Description |
|---|
IntrusionException(java.lang.String userMessage,
java.lang.String logMessage)
Creates a new instance of IntrusionException.
|
IntrusionException(java.lang.String userMessage,
java.lang.String logMessage,
java.lang.Throwable cause)
Instantiates a new intrusion exception.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLogMessage()
Returns a String that is safe to display in logs, but probably not to users
|
java.lang.String |
getUserMessage()
Returns a String containing a message that is safe to display to users
|
protected final transient Logger logger
protected java.lang.String logMessage
public IntrusionException(java.lang.String userMessage,
java.lang.String logMessage)
userMessage - the message to display to userslogMessage - the message loggedpublic IntrusionException(java.lang.String userMessage,
java.lang.String logMessage,
java.lang.Throwable cause)
userMessage - the message to display to userslogMessage - the message loggedcause - the causepublic java.lang.String getUserMessage()
public java.lang.String getLogMessage()
Copyright © 2014 The Open Web Application Security Project (OWASP). All Rights Reserved.