Class: DTK::RestError::RestUsageError
- Inherits:
-
DTK::RestError
- Object
- DTK::RestError
- DTK::RestError::RestUsageError
- Defined in:
- lib/errors/rest_error.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(err) ⇒ RestUsageError
constructor
A new instance of RestUsageError.
Methods inherited from DTK::RestError
Constructor Details
#initialize(err) ⇒ RestUsageError
Returns a new instance of RestUsageError.
53 54 55 56 |
# File 'lib/errors/rest_error.rb', line 53 def initialize(err) super @message = err.to_s end |
Class Method Details
.match?(err) ⇒ Boolean
57 58 59 |
# File 'lib/errors/rest_error.rb', line 57 def self.match?(err) err.kind_of?(ErrorUsage) end |