module Startback::Errors

Public Class Methods

bad_request_error!(msg = nil) click to toggle source

Helper methods

# File lib/startback/errors.rb, line 95
def bad_request_error!(msg = nil)
  raise Startback::Errors::BadRequestError, msg
end
conflict_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 125
def conflict_error!(msg = nil)
  raise Startback::Errors::ConflictError, msg
end
expectation_failed_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 145
def expectation_failed_error!(msg = nil)
  raise Startback::Errors::ExpectationFailedError, msg
end
forbidden_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 105
def forbidden_error!(msg = nil)
  raise Startback::Errors::ForbiddenError, msg
end
gone_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 130
def gone_error!(msg = nil)
  raise Startback::Errors::GoneError, msg
end
internal_server_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 160
def internal_server_error!(msg = nil)
  raise Startback::Errors::InternalServerError, msg
end
locked_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 150
def locked_error!(msg = nil)
  raise Startback::Errors::LockedError, msg
end
method_not_allowed_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 115
def method_not_allowed_error!(msg = nil)
  raise Startback::Errors::MethodNotAllowedError, msg
end
not_acceptable_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 120
def not_acceptable_error!(msg = nil)
  raise Startback::Errors::NotAcceptableError, msg
end
not_found_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 110
def not_found_error!(msg = nil)
  raise Startback::Errors::NotFoundError, "#{msg} not found"
end
not_implemented_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 165
def not_implemented_error!(msg = nil)
  raise Startback::Errors::NotImplementedError, msg
end
precondition_failed_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 135
def precondition_failed_error!(msg = nil)
  raise Startback::Errors::PreconditionFailedError, msg
end
precondition_required_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 155
def precondition_required_error!(msg = nil)
  raise Startback::Errors::PreconditionRequiredError, msg
end
server_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 177
def server_error!(msg = nil)
  raise Startback::Errors::InternalServerError, msg
end
unauthorized_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 100
def unauthorized_error!(msg = nil)
  raise Startback::Errors::UnauthorizedError, msg
end
unsupported_media_type_error!(media) click to toggle source
# File lib/startback/errors.rb, line 140
def unsupported_media_type_error!(media)
  raise Startback::Errors::UnsupportedMediaTypeError, "Unable to use `#{media}` as input data"
end
user_error!(msg = nil) click to toggle source

Aliases

# File lib/startback/errors.rb, line 172
def user_error!(msg = nil)
  raise Startback::Errors::BadRequestError, msg
end

Private Instance Methods

bad_request_error!(msg = nil) click to toggle source

Helper methods

# File lib/startback/errors.rb, line 95
def bad_request_error!(msg = nil)
  raise Startback::Errors::BadRequestError, msg
end
conflict_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 125
def conflict_error!(msg = nil)
  raise Startback::Errors::ConflictError, msg
end
expectation_failed_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 145
def expectation_failed_error!(msg = nil)
  raise Startback::Errors::ExpectationFailedError, msg
end
forbidden_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 105
def forbidden_error!(msg = nil)
  raise Startback::Errors::ForbiddenError, msg
end
gone_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 130
def gone_error!(msg = nil)
  raise Startback::Errors::GoneError, msg
end
internal_server_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 160
def internal_server_error!(msg = nil)
  raise Startback::Errors::InternalServerError, msg
end
locked_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 150
def locked_error!(msg = nil)
  raise Startback::Errors::LockedError, msg
end
method_not_allowed_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 115
def method_not_allowed_error!(msg = nil)
  raise Startback::Errors::MethodNotAllowedError, msg
end
not_acceptable_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 120
def not_acceptable_error!(msg = nil)
  raise Startback::Errors::NotAcceptableError, msg
end
not_found_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 110
def not_found_error!(msg = nil)
  raise Startback::Errors::NotFoundError, "#{msg} not found"
end
not_implemented_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 165
def not_implemented_error!(msg = nil)
  raise Startback::Errors::NotImplementedError, msg
end
precondition_failed_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 135
def precondition_failed_error!(msg = nil)
  raise Startback::Errors::PreconditionFailedError, msg
end
precondition_required_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 155
def precondition_required_error!(msg = nil)
  raise Startback::Errors::PreconditionRequiredError, msg
end
server_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 177
def server_error!(msg = nil)
  raise Startback::Errors::InternalServerError, msg
end
unauthorized_error!(msg = nil) click to toggle source
# File lib/startback/errors.rb, line 100
def unauthorized_error!(msg = nil)
  raise Startback::Errors::UnauthorizedError, msg
end
unsupported_media_type_error!(media) click to toggle source
# File lib/startback/errors.rb, line 140
def unsupported_media_type_error!(media)
  raise Startback::Errors::UnsupportedMediaTypeError, "Unable to use `#{media}` as input data"
end
user_error!(msg = nil) click to toggle source

Aliases

# File lib/startback/errors.rb, line 172
def user_error!(msg = nil)
  raise Startback::Errors::BadRequestError, msg
end