Exception: Utils::SchemaTypeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/notion_api/utils.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg = "Custom exception that is raised when an invalid property type is passed as a mapping.", exception_type = "schema_type") ⇒ SchemaTypeError

Returns a new instance of SchemaTypeError.



676
677
678
679
# File 'lib/notion_api/utils.rb', line 676

def initialize(msg = "Custom exception that is raised when an invalid property type is passed as a mapping.", exception_type = "schema_type")
  @exception_type = exception_type
  super(msg)
end