Exception: Ashikawa::Core::BadSyntax

Inherits:
ClientError
  • Object
show all
Defined in:
lib/ashikawa-core/exceptions/client_error/bad_syntax.rb

Overview

This exception is thrown when the client used bad syntax in a request

Instance Method Summary collapse

Methods inherited from ClientError

#default_error_message

Constructor Details

#initialize(message = 'Status 400: The syntax of the request was bad') ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Create a new instance


12
13
14
15
# File 'lib/ashikawa-core/exceptions/client_error/bad_syntax.rb', line 12

def initialize(message = 'Status 400: The syntax of the request was bad')
  @message = message
  super(400)
end

Instance Method Details

#to_sObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

String representation of the exception

Returns:

  • String


21
22
23
# File 'lib/ashikawa-core/exceptions/client_error/bad_syntax.rb', line 21

def to_s
  @message
end