InvalidCepFormatException class

Thrown when the input CEP has an invalid format.

This exception is triggered by the fetchCepData function when the provided cep does not conform to the expected format after normalization.

The normalization process removes all non-numeric characters (such as dots or dashes), and the resulting string must contain exactly 8 digits.

Inheritance

Constructors

InvalidCepFormatException(String cep)
Creates an InvalidCepFormatException when the provided cep is invalid after removing formatting (must have exactly 8 digits).

Properties

cep String
The original, unformatted CEP string provided by the user.
final
hashCode int
The hash code for this object.
no setterinherited
message String
A human-readable description of the exception.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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