Exception: OdpsDatahub::OdpsDatahubException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/fluent/plugin/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#mErrorCodeObject (readonly)

Returns the value of attribute mErrorCode.



26
27
28
# File 'lib/fluent/plugin/exceptions.rb', line 26

def mErrorCode
  @mErrorCode
end

#mMessageObject (readonly)

Returns the value of attribute mMessage.



26
27
28
# File 'lib/fluent/plugin/exceptions.rb', line 26

def mMessage
  @mMessage
end

#mRequestIdObject (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

#getCodeObject



37
38
39
# File 'lib/fluent/plugin/exceptions.rb', line 37

def getCode
  @mErrorCode
end

#getMessageObject



33
34
35
# File 'lib/fluent/plugin/exceptions.rb', line 33

def getMessage
  @mMessage
end

#getRequestIdObject



41
42
43
# File 'lib/fluent/plugin/exceptions.rb', line 41

def getRequestId
  @mRequestId
end

#to_sObject



45
46
47
# File 'lib/fluent/plugin/exceptions.rb', line 45

def to_s
  return "ErrorCode: " + @mErrorCode + ", Message: " + @mMessage + ", requestId:" + @mRequestId
end