Exception: Nexpose::PermissionError

Inherits:
APIError
  • Object
show all
Defined in:
lib/nexpose/error.rb

Instance Attribute Summary

Attributes inherited from APIError

#code, #reason, #req

Instance Method Summary collapse

Methods inherited from APIError

#to_s

Constructor Details

#initialize(req) ⇒ PermissionError

Returns a new instance of PermissionError.



26
27
28
29
# File 'lib/nexpose/error.rb', line 26

def initialize(req)
  @req    = req
  @reason = 'User does not have permission to perform this action.'
end