# Cloud Trace API - Class Google::Cloud::Trace::AsyncPatchTracesError (v0.46.0)

0.46.0 (latest) 0.45.0 0.44.1 0.43.0 0.42.2 0.41.4 Reference documentation and code samples for the Cloud Trace API class Google::Cloud::Trace::AsyncPatchTracesError.

## AsyncPatchTracesError

Used to indicate a problem when patching traces to the API. This can
occur when the API returns an error.

## Inherits

- Google::Cloud::Error

## Methods

### #count

    def count() -> Array<Google::Cloud::Trace::TraceRecord>

objects that were not written to the API due to the error.
**Returns**

- (Array\<[Google::Cloud::Trace::TraceRecord](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-trace/latest/Google-Cloud-Trace-TraceRecord)\>) --- traces The trace

### #initialize

    def initialize(message, traces = nil) -> AsyncPatchTracesError

**Returns**

- ([AsyncPatchTracesError](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-trace/latest/Google-Cloud-Trace-AsyncPatchTracesError)) --- a new instance of AsyncPatchTracesError

### #traces

    def traces()

Returns the value of attribute traces.