Sha256: 82fd9b451aae3a6e0949c0df746900aea965dfbbb8bcb4a86bd039c4d70c4699
Contents?: true
Size: 603 Bytes
Versions: 5
Compression:
Stored size: 603 Bytes
Contents
# -*- encoding : utf-8 -*- require 'ashikawa-core/exceptions/client_error.rb' module Ashikawa module Core # This exception is thrown when the client used bad syntax in a request class BadSyntax < ClientError # Create a new instance # # @return RuntimeError # @api private def initialize(message = 'Status 400: The syntax of the request was bad') @message = message super(400) end # String representation of the exception # # @return String # @api private def to_s @message end end end end
Version data entries
5 entries across 5 versions & 1 rubygems