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.



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

#mErrorCodeObject (readonly)

Returns the value of attribute mErrorCode.



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

def mErrorCode
  @mErrorCode
end

#mMessageObject (readonly)

Returns the value of attribute mMessage.



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

def mMessage
  @mMessage
end

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

#getCodeObject



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

def getCode
  @mErrorCode
end

#getMessageObject



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

def getMessage
  @mMessage
end

#getRequestIdObject



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

def getRequestId
  @mRequestId
end

#to_sObject



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

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