Class: ExceptionCode
- Inherits:
-
Object
- Object
- ExceptionCode
- Defined in:
- lib/arch_def.rb
Overview
a synchroncous exception code
Instance Attribute Summary collapse
-
#ext ⇒ Extension
readonly
Extension that defines this code.
-
#name ⇒ String
readonly
Long-form display name (can include special characters).
-
#num ⇒ Integer
readonly
Code, written into *mcause.
-
#var ⇒ String
readonly
Field name for an IDL enum.
Instance Method Summary collapse
-
#initialize(name, var, number, ext) ⇒ ExceptionCode
constructor
A new instance of ExceptionCode.
Constructor Details
#initialize(name, var, number, ext) ⇒ ExceptionCode
Returns a new instance of ExceptionCode.
1145 1146 1147 1148 1149 1150 1151 |
# File 'lib/arch_def.rb', line 1145 def initialize(name, var, number, ext) @name = name @name.freeze @var = var @num = number @ext = ext end |
Instance Attribute Details
#ext ⇒ Extension (readonly)
Returns Extension that defines this code.
1143 1144 1145 |
# File 'lib/arch_def.rb', line 1143 def ext @ext end |
#name ⇒ String (readonly)
Returns Long-form display name (can include special characters).
1134 1135 1136 |
# File 'lib/arch_def.rb', line 1134 def name @name end |
#num ⇒ Integer (readonly)
Returns Code, written into *mcause.
1140 1141 1142 |
# File 'lib/arch_def.rb', line 1140 def num @num end |
#var ⇒ String (readonly)
Returns Field name for an IDL enum.
1137 1138 1139 |
# File 'lib/arch_def.rb', line 1137 def var @var end |