Exception: Sheetah::Errors::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Sheetah::Errors::Error
show all
- Defined in:
- lib/sheetah/errors/error.rb
Class Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Class Attribute Details
.msg_code ⇒ Object
Returns the value of attribute msg_code.
13
14
15
|
# File 'lib/sheetah/errors/error.rb', line 13
def msg_code
@msg_code
end
|
Class Method Details
.detect_msg_code? ⇒ Boolean
15
16
17
|
# File 'lib/sheetah/errors/error.rb', line 15
def detect_msg_code?
name && /^[a-z0-9:]+$/i.match?(name)
end
|
.msg_code!(msg_code = build_msg_code) ⇒ Object
19
20
21
|
# File 'lib/sheetah/errors/error.rb', line 19
def msg_code!(msg_code = build_msg_code)
@msg_code = msg_code
end
|
Instance Method Details
#msg_code ⇒ Object
42
43
44
|
# File 'lib/sheetah/errors/error.rb', line 42
def msg_code
self.class.msg_code
end
|