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.
28 29 30 31 32 |
# File 'lib/fluent/plugin/exceptions.rb', line 28 def initialize(code, msg, reqId = "") @mMessage = msg @mErrorCode = code @mRequestId = reqId end |
Instance Attribute Details
#mErrorCode ⇒ Object (readonly)
Returns the value of attribute mErrorCode.
27 28 29 |
# File 'lib/fluent/plugin/exceptions.rb', line 27 def mErrorCode @mErrorCode end |
#mMessage ⇒ Object (readonly)
Returns the value of attribute mMessage.
27 28 29 |
# File 'lib/fluent/plugin/exceptions.rb', line 27 def mMessage @mMessage end |
#mRequestId ⇒ Object (readonly)
Returns the value of attribute mRequestId.
27 28 29 |
# File 'lib/fluent/plugin/exceptions.rb', line 27 def mRequestId @mRequestId end |
Instance Method Details
#getCode ⇒ Object
38 39 40 |
# File 'lib/fluent/plugin/exceptions.rb', line 38 def getCode @mErrorCode end |
#getMessage ⇒ Object
34 35 36 |
# File 'lib/fluent/plugin/exceptions.rb', line 34 def getMessage @mMessage end |
#getRequestId ⇒ Object
42 43 44 |
# File 'lib/fluent/plugin/exceptions.rb', line 42 def getRequestId @mRequestId end |
#to_s ⇒ Object
46 47 48 |
# File 'lib/fluent/plugin/exceptions.rb', line 46 def to_s return "ErrorCode: " + @mErrorCode + ", Message: " + @mMessage + ", requestId:" + @mRequestId end |