Exception: Serverkit::Errors::UnknownResourceTypeError

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

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ UnknownResourceTypeError

Returns a new instance of UnknownResourceTypeError.

Parameters:

  • type (String)

7
8
9
# File 'lib/serverkit/errors/unknown_resource_type_error.rb', line 7

def initialize(type)
  @type = type
end

Instance Method Details

#to_sString

Returns:

  • (String)

12
13
14
# File 'lib/serverkit/errors/unknown_resource_type_error.rb', line 12

def to_s
  "Unknown `#{@type}` resource type"
end