Sha256: a697b4b3bafed9d539ec9b083cf7f75e9f4f91fab1e825ef7713d0c7cdf806ce
Contents?: true
Size: 580 Bytes
Versions: 8
Compression:
Stored size: 580 Bytes
Contents
module DiscourseApi class Error < StandardError attr_reader :wrapped_exception # Initializes a new Error object # # @param exception [Exception, String] # @return [DiscourseApi::Error] def initialize(exception=$!) @wrapped_exception = exception exception.respond_to?(:message) ? super(exception.message) : super(exception.to_s) end end class UnauthenticatedError < StandardError end class NotFoundError < StandardError end class UnprocessableEntity < StandardError end class TooManyRequests < StandardError end end
Version data entries
8 entries across 8 versions & 1 rubygems