Sha256: 808c2bffc8950f674ed265dc7d08d58e4c52a1e5b3990cc84212007ee58b63a5
Contents?: true
Size: 1.51 KB
Versions: 5
Compression:
Stored size: 1.51 KB
Contents
module OEHClient module Exception # Used when an invalid OAuth token is detected as part of the client-side API calls class InvalidTokenException < ::Exception end # InvalidSpaceConfigException is used when a OEHClient::Space instance is missing one or more # of the key data attributes class InvalidSpaceConfigException < ::Exception end # InvalidSpaceException is used when a space is not configured class InvalidSpaceException < ::Exception end # InvalideSpaceObjectException is used when a method expects a OEHClient::Config::Space object and # the object passed is not of the same type class InvalidSpaceObjectException < ::Exception end # HTTPRequestException is used to manage any REST error code that is returned by the OEH # server class HTTPRequestException < ::Exception attr_accessor :http_code # override the constructor to add the code value to exception class def initialize(msg, code) super(msg) @http_code = code end end # Missing ParameterException is used to identify the list of parameters that are required, but missing # by a key method class MissingParameterException < ::Exception def initialize(parameter_list) super("Missing the required parameters #{parameter_list.join(', ')}") end end class IncorrectParameterTypeException < ::Exception def initialize(expected_kind, passed_kind) super("Incorrect Parameter Type. Expected #{expected_kind} but received #{passed_kind}") end end end end
Version data entries
5 entries across 5 versions & 1 rubygems