Package org.zaproxy.zap.model
Class IllegalContextNameException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- org.zaproxy.zap.model.IllegalContextNameException
-
- All Implemented Interfaces:
java.io.Serializable
public class IllegalContextNameException extends java.lang.IllegalArgumentException
AnIllegalArgumentException
that indicates why a context name is illegal.- Since:
- 2.6.0
- See Also:
IllegalContextNameException.Reason
, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IllegalContextNameException.Reason
The reason why a context's name is illegal.
-
Constructor Summary
Constructors Constructor Description IllegalContextNameException(IllegalContextNameException.Reason reason)
Constructs anIllegalContextNameException
with the given reason.IllegalContextNameException(IllegalContextNameException.Reason reason, java.lang.String message)
Constructs anIllegalContextNameException
with the given reason and message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IllegalContextNameException.Reason
getReason()
Gets the reason why the context's name is illegal.
-
-
-
Constructor Detail
-
IllegalContextNameException
public IllegalContextNameException(IllegalContextNameException.Reason reason)
Constructs anIllegalContextNameException
with the given reason.- Parameters:
reason
- the reason why the name is illegal, must not benull
.
-
IllegalContextNameException
public IllegalContextNameException(IllegalContextNameException.Reason reason, java.lang.String message)
Constructs anIllegalContextNameException
with the given reason and message.- Parameters:
reason
- the reason why the name is illegal, must not benull
.message
- the detail message
-
-
Method Detail
-
getReason
public IllegalContextNameException.Reason getReason()
Gets the reason why the context's name is illegal.- Returns:
- the reason why the name is illegal.
-
-