Exception: CommandTower::Errors::UnauthorizedError

Inherits:
ApplicationError show all
Defined in:
app/errors/command_tower/errors/unauthorized_error.rb

Instance Attribute Summary

Attributes inherited from ApplicationError

#cause, #details

Instance Method Summary collapse

Methods inherited from ApplicationError

#initialize, #retryable?

Constructor Details

This class inherits a constructor from CommandTower::Errors::ApplicationError

Instance Method Details

#codeObject



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

def code
  "unauthorized"
end

#log_levelObject



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

def log_level
  :warn
end

#messageObject



10
11
12
# File 'app/errors/command_tower/errors/unauthorized_error.rb', line 10

def message
  "Unauthorized"
end