Class: Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoErrorDetail

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/integrations_v1alpha/classes.rb,
lib/google/apis/integrations_v1alpha/representations.rb,
lib/google/apis/integrations_v1alpha/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.



733
734
735
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 733

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

Instance Attribute Details

#error_codeGoogle::Apis::IntegrationsV1alpha::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



714
715
716
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 714

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)


720
721
722
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 720

def error_message
  @error_message
end

#severityString

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

Returns:

  • (String)


725
726
727
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 725

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)


731
732
733
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 731

def task_number
  @task_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



738
739
740
741
742
743
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 738

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