Exception: InvalidCpfCnpjFormatError

Inherits:
StandardError
  • Object
show all
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

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