A critical part of the partial update protocol is to return a structured error when a resource is successfully created, but fails to initialize. This structured error contains the properties of the partially-initialized resource, and instructs the engine to halt. Most languages implement this by attaching "details" to the error, i.e., an arbitrary proto message attached to the error. The JavaScript implementation is not mature enough to include all the facilities required to use this, so here we must add a `Status` message, which protobuf requires as part of its structure for returning details.
23 lines
718 B
Protocol Buffer
23 lines
718 B
Protocol Buffer
// Copyright 2016-2018, Pulumi Corporation.
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
syntax = "proto3";
|
|
|
|
package pulumirpc;
|
|
|
|
message ErrorCause {
|
|
string message = 1;
|
|
string stackTrace = 2;
|
|
}
|
|
|