Class: Google::Apis::IntegrationsV1::EnterpriseCrmEventbusProtoErrorDetail

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/integrations_v1/classes.rb,
lib/google/apis/integrations_v1/representations.rb,
lib/google/apis/integrations_v1/representations.rb

Overview

An error, warning, or information message associated with a workflow.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnterpriseCrmEventbusProtoErrorDetail

Returns a new instance of EnterpriseCrmEventbusProtoErrorDetail.



868
869
870
# File 'lib/google/apis/integrations_v1/classes.rb', line 868

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#error_codeGoogle::Apis::IntegrationsV1::CrmlogErrorCode

Registered ids for errors, as "oneof" enums. Each task or logical grouping of tasks may share the same enum. Corresponds to the JSON property errorCode



849
850
851
# File 'lib/google/apis/integrations_v1/classes.rb', line 849

def error_code
  @error_code
end

#error_messageString

The full text of the error message, including any parameters that were thrown along with the exception. Corresponds to the JSON property errorMessage

Returns:

  • (String)


855
856
857
# File 'lib/google/apis/integrations_v1/classes.rb', line 855

def error_message
  @error_message
end

#severityString

The severity of the error: ERROR|WARN|INFO. Corresponds to the JSON property severity

Returns:

  • (String)


860
861
862
# File 'lib/google/apis/integrations_v1/classes.rb', line 860

def severity
  @severity
end

#task_numberFixnum

The task try-number, in which, the error occurred. If zero, the error happened at the event level. Corresponds to the JSON property taskNumber

Returns:

  • (Fixnum)


866
867
868
# File 'lib/google/apis/integrations_v1/classes.rb', line 866

def task_number
  @task_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



873
874
875
876
877
878
# File 'lib/google/apis/integrations_v1/classes.rb', line 873

def update!(**args)
  @error_code = args[:error_code] if args.key?(:error_code)
  @error_message = args[:error_message] if args.key?(:error_message)
  @severity = args[:severity] if args.key?(:severity)
  @task_number = args[:task_number] if args.key?(:task_number)
end