Exception: InvalidCpfCnpjFormatError
- Inherits:
-
StandardError
- Object
- StandardError
- InvalidCpfCnpjFormatError
- Defined in:
- lib/invalid_cpf_cnpj_format_exception.rb
Overview
Error raised when trying to format an invalid CPF or CNPJ.
Instance Method Summary collapse
-
#initialize(msg = "Invalid CPF or CNPJ.") ⇒ InvalidCpfCnpjFormatError
constructor
A new instance of InvalidCpfCnpjFormatError.
Constructor Details
#initialize(msg = "Invalid CPF or CNPJ.") ⇒ InvalidCpfCnpjFormatError
Returns a new instance of InvalidCpfCnpjFormatError.
7 8 9 |
# File 'lib/invalid_cpf_cnpj_format_exception.rb', line 7 def initialize(msg = "Invalid CPF or CNPJ.") super end |