Exception: ClaudeAgentServer::ServerError
- Inherits:
-
StandardError
- Object
- StandardError
- ClaudeAgentServer::ServerError
show all
- Defined in:
- lib/claude_agent_server/errors.rb
Instance Method Summary
collapse
Instance Method Details
#error_type ⇒ Object
7
|
# File 'lib/claude_agent_server/errors.rb', line 7
def error_type = 'server_error'
|
#status_code ⇒ Object
8
|
# File 'lib/claude_agent_server/errors.rb', line 8
def status_code = 500
|
#title ⇒ Object
9
|
# File 'lib/claude_agent_server/errors.rb', line 9
def title = 'Server Error'
|
#to_problem_details ⇒ Object
12
13
14
15
16
17
18
19
|
# File 'lib/claude_agent_server/errors.rb', line 12
def to_problem_details
{
type: urn,
title: title,
status: status_code,
detail: message
}
end
|
#urn ⇒ Object
10
|
# File 'lib/claude_agent_server/errors.rb', line 10
def urn = "#{URN_PREFIX}:#{error_type}"
|