NotAllowedException class

Thrown by not allowed operations such as in NameBuilder or name formatting.

For example, this exception is thrown when a NameBuilder tries to perform an operation while its current status is marked as closed. Another cause for this exception is when trying to Namefully.format a name accordingly using a non-supported key.

Inheritance

Constructors

NotAllowedException({required Object source, String message = '', String operation = ''})
Creates a new NotAllowedException with an optional error message and the operation name.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
The message describing the failure.
finalinherited
operation String
The revoked operation name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source → dynamic
The actual source input which caused the error.
finalinherited
sourceAsString String
The string value from the name source input.
no setterinherited
type NameExceptionType
The name exception type.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited