Exception: Shaf::Profiles::ProfileNotFoundError

Inherits:
Errors::NotFoundError show all
Defined in:
lib/shaf/profiles.rb

Instance Attribute Summary

Attributes inherited from Errors::NotFoundError

#clazz, #id

Attributes inherited from Errors::ServerError

#code, #title

Instance Method Summary collapse

Methods inherited from Errors::NotFoundError

#http_status

Methods inherited from Errors::ServerError

#http_status

Constructor Details

#initialize(name) ⇒ ProfileNotFoundError

Returns a new instance of ProfileNotFoundError.



6
7
8
9
# File 'lib/shaf/profiles.rb', line 6

def initialize(name)
  msg = %Q(Profile with name "#{name}" does not exist)
  super(msg, id: name)
end