Exception: Hook0::Generated::ProblemError
- Inherits:
-
StandardError
- Object
- StandardError
- Hook0::Generated::ProblemError
- Defined in:
- lib/hook0/generated/errors.rb
Overview
A failure the API answered with, whether or not it could be read as a problem.
Direct Known Subclasses
ApplicationNameMissingError, AuthApplicationSecretLookupErrorError, AuthBiscuitLookupErrorError, AuthEmailAlreadyVerifiedError, AuthEmailExpiredError, AuthEmailNotVerifiedError, AuthFailedLoginError, AuthFailedRefreshError, AuthInvalidApplicationSecretError, AuthInvalidAuthorizationHeaderError, AuthInvalidBiscuitError, AuthNoAuthorizationHeaderError, EventAlreadyIngestedError, EventInvalidBase64PayloadError, EventInvalidJsonPayloadError, EventInvalidPayloadContentTypeError, EventTypeAlreadyExistError, EventTypeDoesNotExistError, ForbiddenError, InternalServerErrorError, InvalidDateRangeError, InvalidRoleError, InvitedUserAlreadyInOrganizationError, InvitedUserDoesNotExistError, JsonPayloadError, LabelsAmbiguityError, NotFoundError, OrganizationIsNotEmptyError, OrganizationNameMissingError, PasswordNotDiverseEnoughError, PasswordSimilarToEmailError, PasswordSimilarToNameError, PasswordTooCommonError, PasswordTooLongError, PasswordTooShortError, RateLimitedError, RegistrationDisabledError, ServiceUnavailableError, TooManyApplicationsPerOrganizationError, TooManyEventTypesPerApplicationError, TooManyEventsTodayError, TooManyMembersPerOrganizationError, TooManySubscriptionsPerApplicationError, UnauthorizedWorkersError, UserAlreadyExistError, ValidationError
Instance Attribute Summary collapse
-
#problem ⇒ Object
readonly
Returns the value of attribute problem.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, problem, detail) ⇒ ProblemError
constructor
A new instance of ProblemError.
Constructor Details
#initialize(status, problem, detail) ⇒ ProblemError
Returns a new instance of ProblemError.
18 19 20 21 22 |
# File 'lib/hook0/generated/errors.rb', line 18 def initialize(status, problem, detail) super(detail) @status = status @problem = problem end |
Instance Attribute Details
#problem ⇒ Object (readonly)
Returns the value of attribute problem.
13 14 15 |
# File 'lib/hook0/generated/errors.rb', line 13 def problem @problem end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
13 14 15 |
# File 'lib/hook0/generated/errors.rb', line 13 def status @status end |