Exception: CommandTower::Errors::ApplicationError

Inherits:
StandardError
  • Object
show all
Defined in:
app/errors/command_tower/errors/application_error.rb

Direct Known Subclasses

Clients::Errors::AuthenticationError, Clients::Errors::DeserializationError, Clients::Errors::UpstreamError, CommandTower::Errors::Account::PhoneAlreadyVerifiedError, CommandTower::Errors::Account::PhoneMissingError, CommandTower::Errors::Account::PhoneVerificationCodeInvalidError, CommandTower::Errors::Account::PhoneVerificationExpiredError, CommandTower::Errors::Account::PhoneVerificationSendFailedError, CommandTower::Errors::Account::PhoneVerificationStaleError, CommandTower::Errors::Account::PhoneVerificationThrottledError, CommandTower::Errors::Account::PushoverAlreadyConfiguredError, CommandTower::Errors::Account::PushoverCapabilityUnavailableError, CommandTower::Errors::Account::PushoverNotConfiguredError, CommandTower::Errors::Account::PushoverProviderUnavailableError, CommandTower::Errors::Account::PushoverVerificationFailedError, CommandTower::Errors::Account::SmsCapabilityUnavailableError, CommandTower::Errors::Auth::AdminUnavailableDuringImpersonationError, CommandTower::Errors::Auth::DefaultMembershipAssignmentError, CommandTower::Errors::Auth::PasswordRecoveryIpRateLimitError, CommandTower::Errors::Auth::PasswordRecoverySessionExpiredError, CommandTower::Errors::Auth::PasswordRecoverySessionInvalidError, CommandTower::Errors::Auth::PasswordRecoverySessionMissingError, CommandTower::Errors::Auth::PasswordRecoverySessionRateLimitError, CommandTower::Errors::Auth::PasswordResetInvalidTokenError, CommandTower::Errors::Auth::PasswordResetUnavailableError, CommandTower::Errors::Auth::SignupIpRateLimitError, CommandTower::Errors::Auth::SignupSessionRateLimitError, CommandTower::Errors::Auth::VerificationSendFailedError, ContinuationExhaustedError, ForbiddenError, InternalError, Messaging::AcceptRejectedError, Messaging::IdempotencyConflictError, Messaging::RecipientUnresolvedError, NotFoundError, UnauthorizedError, ValidationError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(details: nil, cause: nil) ⇒ ApplicationError

Returns a new instance of ApplicationError.



8
9
10
11
12
# File 'app/errors/command_tower/errors/application_error.rb', line 8

def initialize(details: nil, cause: nil)
  @details = details
  @cause = cause
  super()
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



6
7
8
# File 'app/errors/command_tower/errors/application_error.rb', line 6

def cause
  @cause
end

#detailsObject (readonly)

Returns the value of attribute details.



6
7
8
# File 'app/errors/command_tower/errors/application_error.rb', line 6

def details
  @details
end

Instance Method Details

#codeObject

Raises:

  • (NotImplementedError)


14
15
16
# File 'app/errors/command_tower/errors/application_error.rb', line 14

def code
  raise NotImplementedError
end

#log_levelObject



22
23
24
# File 'app/errors/command_tower/errors/application_error.rb', line 22

def log_level
  :info
end

#retryable?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'app/errors/command_tower/errors/application_error.rb', line 18

def retryable?
  false
end