Exception: JIJI::UserError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/jiji/error.rb

Overview

ユーザー操作により発生しうるエラー

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message = "") ⇒ UserError

Returns a new instance of UserError.



13
14
15
16
# File 'lib/jiji/error.rb', line 13

def initialize( code, message="" )
  super( message )
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



17
18
19
# File 'lib/jiji/error.rb', line 17

def code
  @code
end