Exception: OdpsDatahub::OdpsDatahubException
- Inherits:
-
StandardError
- Object
- StandardError
- OdpsDatahub::OdpsDatahubException
- Defined in:
- lib/fluent/plugin/exceptions.rb
Instance Attribute Summary collapse
-
#mErrorCode ⇒ Object
readonly
Returns the value of attribute mErrorCode.
-
#mMessage ⇒ Object
readonly
Returns the value of attribute mMessage.
-
#mRequestId ⇒ Object
readonly
Returns the value of attribute mRequestId.
Instance Method Summary collapse
- #getCode ⇒ Object
- #getMessage ⇒ Object
- #getRequestId ⇒ Object
-
#initialize(code, msg, reqId = "") ⇒ OdpsDatahubException
constructor
A new instance of OdpsDatahubException.
- #to_s ⇒ Object
Constructor Details
#initialize(code, msg, reqId = "") ⇒ OdpsDatahubException
Returns a new instance of OdpsDatahubException.
27 28 29 30 31 |
# File 'lib/fluent/plugin/exceptions.rb', line 27 def initialize(code, msg, reqId = "") @mMessage = msg @mErrorCode = code @mRequestId = reqId end |
Instance Attribute Details
#mErrorCode ⇒ Object (readonly)
Returns the value of attribute mErrorCode.
26 27 28 |
# File 'lib/fluent/plugin/exceptions.rb', line 26 def mErrorCode @mErrorCode end |
#mMessage ⇒ Object (readonly)
Returns the value of attribute mMessage.
26 27 28 |
# File 'lib/fluent/plugin/exceptions.rb', line 26 def mMessage @mMessage end |
#mRequestId ⇒ Object (readonly)
Returns the value of attribute mRequestId.
26 27 28 |
# File 'lib/fluent/plugin/exceptions.rb', line 26 def mRequestId @mRequestId end |
Instance Method Details
#getCode ⇒ Object
37 38 39 |
# File 'lib/fluent/plugin/exceptions.rb', line 37 def getCode @mErrorCode end |
#getMessage ⇒ Object
33 34 35 |
# File 'lib/fluent/plugin/exceptions.rb', line 33 def getMessage @mMessage end |
#getRequestId ⇒ Object
41 42 43 |
# File 'lib/fluent/plugin/exceptions.rb', line 41 def getRequestId @mRequestId end |
#to_s ⇒ Object
45 46 47 |
# File 'lib/fluent/plugin/exceptions.rb', line 45 def to_s return "ErrorCode: " + @mErrorCode + ", Message: " + @mMessage + ", requestId:" + @mRequestId end |