Exception: Serverkit::Errors::InvalidResourcesTypeError

Inherits:
Base
  • Object
show all
Defined in:
lib/serverkit/errors/invalid_resources_type_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ InvalidResourcesTypeError

Returns a new instance of InvalidResourcesTypeError.

Parameters:

  • type (Class)


9
10
11
# File 'lib/serverkit/errors/invalid_resources_type_error.rb', line 9

def initialize(type)
  @type = type
end

Instance Method Details

#to_sObject



13
14
15
# File 'lib/serverkit/errors/invalid_resources_type_error.rb', line 13

def to_s
  "resources property must be an Array, not #{@type}"
end