Exception: EMISRedis::VeteranStatus::RecordNotFound

Inherits:
StandardError
  • Object
show all
Defined in:
app/models/emis_redis/veteran_status.rb

Overview

Record not found error raised if user is not found in EMIS

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status: nil) ⇒ RecordNotFound

Returns a new instance of RecordNotFound.

Parameters:

  • status (Integer) (defaults to: nil)

    An HTTP status code



61
62
63
# File 'app/models/emis_redis/veteran_status.rb', line 61

def initialize(status: nil)
  @status = status
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



57
58
59
# File 'app/models/emis_redis/veteran_status.rb', line 57

def status
  @status
end