Exception: Akismet::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Akismet::Error
- Defined in:
- lib/akismet/error.rb
Constant Summary collapse
- UNKNOWN =
1
- INVALID_API_KEY =
2
Instance Attribute Summary collapse
-
#code ⇒ Integer
readonly
An error code corresponding to a constant in Akismet::Error.
Instance Method Summary collapse
-
#initialize(code, message = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(code, message = nil) ⇒ Error
Returns a new instance of Error.
17 18 19 20 |
# File 'lib/akismet/error.rb', line 17 def initialize( code, = nil ) super( ) @code = code end |
Instance Attribute Details
#code ⇒ Integer (readonly)
An error code corresponding to a constant in Akismet::Error.
10 11 12 |
# File 'lib/akismet/error.rb', line 10 def code @code end |