Exception: CommandTower::Errors::ClientUpdateRequiredError

Inherits:
ApplicationError
  • Object
show all
Defined in:
app/errors/command_tower/errors/client_update_required_error.rb

Overview

Hard client-version incompatibility (authority §14). Deliberately NOT registered in SessionErrorStatus — its HTTP status (426) is set directly by Workflows::ClientCompatibility::EvaluateWorkflow, not derived from that closed 401/403/412 mapping table.

Instance Attribute Summary

Attributes inherited from ApplicationError

#cause, #details

Instance Method Summary collapse

Methods inherited from ApplicationError

#retryable?

Constructor Details

#initialize(details: {}) ⇒ ClientUpdateRequiredError

Returns a new instance of ClientUpdateRequiredError.



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

def initialize(details: {})
  super(details:)
end

Instance Method Details

#code ⇒ Object



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

def code
  "client_update_required"
end

#log_level ⇒ Object



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

def log_level
  :warn
end

#message ⇒ Object



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

def message
  "Client update required"
end