public class SandboxException
extends java.lang.Exception
Constructor and Description |
---|
SandboxException(Sandbox sandbox)
Constructs an exception.
|
SandboxException(Sandbox sandbox,
java.lang.String message)
Constructs an exception with a message.
|
SandboxException(Sandbox sandbox,
java.lang.String message,
java.lang.Throwable cause)
Constructs an exception with a message and a cause.
|
SandboxException(Sandbox sandbox,
java.lang.Throwable cause)
Constructs an exception with a cause.
|
Modifier and Type | Method and Description |
---|---|
Sandbox |
getSandbox()
Gets the sandbox where this exception occurred.
|
void |
log(ADFLogger logger,
java.util.logging.Level level)
Logs this exception.
|
public SandboxException(Sandbox sandbox)
sandbox
- the sandbox where this exception occursjava.lang.IllegalArgumentException
- if the given sandbox is nullpublic SandboxException(Sandbox sandbox, java.lang.String message)
sandbox
- the sandbox where this exception occursmessage
- the messagejava.lang.IllegalArgumentException
- if the given sandbox is nullpublic SandboxException(Sandbox sandbox, java.lang.Throwable cause)
sandbox
- the sandbox where this exception occurscause
- the causejava.lang.IllegalArgumentException
- if the given sandbox is nullpublic SandboxException(Sandbox sandbox, java.lang.String message, java.lang.Throwable cause)
sandbox
- the sandbox where this exception occursmessage
- the messagecause
- the causejava.lang.IllegalArgumentException
- if the given sandbox is nullpublic final Sandbox getSandbox()
public void log(ADFLogger logger, java.util.logging.Level level)
logger
- the logger to log this exceptionlevel
- the logging leveljava.lang.NullPointerException
- if the given logger is null