Exception: OpenReceive::Server::NotFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/openreceive/server/errors.rb

Overview

404 — the order or checkout was not found.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = "Not found.") ⇒ NotFoundError

Returns a new instance of NotFoundError.



51
52
53
54
55
# File 'lib/openreceive/server/errors.rb', line 51

def initialize(message = "Not found.")
  super(message)
  @status = 404
  @code = "NOT_FOUND"
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



49
50
51
# File 'lib/openreceive/server/errors.rb', line 49

def code
  @code
end

#statusObject (readonly)

Returns the value of attribute status.



49
50
51
# File 'lib/openreceive/server/errors.rb', line 49

def status
  @status
end