Documentation
¶
Index ¶
- func FromStatus(st *status.Status) error
- func NewAborted(message string) error
- func NewAbortedf(format string, args ...any) error
- func NewActivityExecutionAlreadyStarted(message, startRequestId, runId string) error
- func NewActivityExecutionAlreadyStartedf(startRequestId, runId, format string, args ...any) error
- func NewAlreadyExist(message string) error
- func NewAlreadyExists(message string) error
- func NewAlreadyExistsf(format string, args ...any) error
- func NewCanceled(message string) error
- func NewCanceledf(format string, args ...any) error
- func NewCancellationAlreadyRequested(message string) error
- func NewCancellationAlreadyRequestedf(format string, args ...any) error
- func NewClientVersionNotSupported(clientVersion, clientName, supportedVersions string) error
- func NewClientVersionNotSupportedf(clientVersion, clientName, supportedVersions, format string, args ...any) error
- func NewDataLoss(message string) error
- func NewDataLossf(format string, args ...any) error
- func NewDeadlineExceeded(message string) error
- func NewDeadlineExceededf(format string, args ...any) error
- func NewFailedPrecondition(message string) error
- func NewFailedPreconditionf(format string, args ...any) error
- func NewInternal(message string) error
- func NewInternalf(format string, args ...any) error
- func NewInvalidArgument(message string) error
- func NewInvalidArgumentf(format string, args ...any) error
- func NewMultiOperationAborted(message string) error
- func NewMultiOperationAbortedf(format string, args ...any) error
- func NewMultiOperationExecution(message string, errs []error) error
- func NewMultiOperationExecutionf(errs []error, format string, args ...any) error
- func NewNamespaceAlreadyExists(message string) error
- func NewNamespaceAlreadyExistsf(format string, args ...any) error
- func NewNamespaceInvalidState(namespace string, state enumspb.NamespaceState, ...) error
- func NewNamespaceNotActive(namespace, currentCluster, activeCluster string) error
- func NewNamespaceNotFound(namespace string) error
- func NewNamespaceUnavailable(namespace string) error
- func NewNewerBuildExists(defaultBuildID string) error
- func NewNotFound(message string) error
- func NewNotFoundf(format string, args ...any) error
- func NewPermissionDenied(message, reason string) error
- func NewPermissionDeniedf(reason, format string, args ...any) error
- func NewQueryFailed(message string) error
- func NewQueryFailedWithFailure(message string, failure *failure.Failure) error
- func NewQueryFailedWithFailuref(failure *failure.Failure, format string, args ...any) error
- func NewQueryFailedf(format string, args ...any) error
- func NewResourceExhausted(cause enumspb.ResourceExhaustedCause, message string) error
- func NewResourceExhaustedf(cause enumspb.ResourceExhaustedCause, format string, args ...any) error
- func NewServerVersionNotSupported(serverVersion, supportedVersions string) error
- func NewSystemWorkflow(workflowExecution *common.WorkflowExecution, workflowError error) error
- func NewSystemWorkflowf(workflowExecution *common.WorkflowExecution, format string, args ...any) error
- func NewUnavailable(message string) error
- func NewUnavailablef(format string, args ...any) error
- func NewUnimplemented(message string) error
- func NewUnimplementedf(format string, args ...any) error
- func NewWorkflowExecutionAlreadyStarted(message, startRequestId, runId string) error
- func NewWorkflowExecutionAlreadyStartedf(startRequestId, runId, format string, args ...any) error
- func NewWorkflowNotReady(message string) error
- func NewWorkflowNotReadyf(format string, args ...any) error
- func ToStatus(err error) *status.Status
- type Aborted
- type ActivityExecutionAlreadyStarted
- type AlreadyExists
- type Canceled
- type CancellationAlreadyRequested
- type ClientVersionNotSupported
- type DataLoss
- type DeadlineExceeded
- type FailedPrecondition
- type Internal
- type InvalidArgument
- type MultiOperationAborted
- type MultiOperationExecution
- type NamespaceAlreadyExists
- type NamespaceInvalidState
- type NamespaceNotActive
- type NamespaceNotFound
- type NamespaceUnavailable
- type NewerBuildExists
- type NotFound
- type PermissionDenied
- type QueryFailed
- type ResourceExhausted
- type ServerVersionNotSupported
- type ServiceError
- type SystemWorkflow
- type Unavailable
- type Unimplemented
- type WorkflowExecutionAlreadyStarted
- type WorkflowNotReady
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromStatus ¶
FromStatus converts gRPC Status to service error.
func NewAborted ¶ added in v1.50.1
NewAborted returns new Aborted error.
func NewAbortedf ¶ added in v1.50.1
NewAbortedf returns new Aborted error with formatted message.
func NewActivityExecutionAlreadyStarted ¶ added in v1.62.0
NewActivityExecutionAlreadyStarted returns new ActivityExecutionAlreadyStarted error.
func NewActivityExecutionAlreadyStartedf ¶ added in v1.62.0
NewActivityExecutionAlreadyStartedf returns new ActivityExecutionAlreadyStarted error with formatted message.
func NewAlreadyExist ¶ added in v1.8.0
Deprecated. Typo in the name. Use NewAlreadyExists instead.
func NewAlreadyExists ¶ added in v1.50.0
NewAlreadyExists returns new AlreadyExists error.
func NewAlreadyExistsf ¶ added in v1.50.0
NewAlreadyExistsf returns new AlreadyExists error with formatted message.
func NewCanceledf ¶ added in v1.50.0
NewCanceledf returns new Canceled error with formatted message.
func NewCancellationAlreadyRequested ¶
NewCancellationAlreadyRequested returns new CancellationAlreadyRequested error.
func NewCancellationAlreadyRequestedf ¶ added in v1.50.0
NewCancellationAlreadyRequestedf returns new CancellationAlreadyRequested error with formatted message.
func NewClientVersionNotSupported ¶
NewClientVersionNotSupported returns new ClientVersionNotSupported error.
func NewClientVersionNotSupportedf ¶ added in v1.50.0
func NewClientVersionNotSupportedf(clientVersion, clientName, supportedVersions, format string, args ...any) error
NewClientVersionNotSupportedf returns new ClientVersionNotSupported error with formatted message.
func NewDataLossf ¶ added in v1.50.0
NewDataLossf returns new DataLoss error with formatted message.
func NewDeadlineExceeded ¶
NewDeadlineExceeded returns new DeadlineExceeded error.
func NewDeadlineExceededf ¶ added in v1.50.0
NewDeadlineExceededf returns new DeadlineExceeded error with formatted message.
func NewFailedPrecondition ¶ added in v1.8.0
NewFailedPrecondition returns new FailedPrecondition error.
func NewFailedPreconditionf ¶ added in v1.50.0
NewFailedPreconditionf returns new FailedPrecondition error with formatted message.
func NewInternalf ¶ added in v1.50.0
NewInternalf returns new Internal error with formatted message.
func NewInvalidArgument ¶
NewInvalidArgument returns new InvalidArgument error.
func NewInvalidArgumentf ¶ added in v1.50.0
NewInvalidArgumentf returns new InvalidArgument error with formatted message.
func NewMultiOperationAborted ¶ added in v1.32.1
NewMultiOperationAborted returns MultiOperationAborted.
func NewMultiOperationAbortedf ¶ added in v1.50.0
NewMultiOperationAbortedf returns MultiOperationAborted with formatted message.
func NewMultiOperationExecution ¶ added in v1.32.1
NewMultiOperationExecution returns a new MultiOperationExecution error.
func NewMultiOperationExecutionf ¶ added in v1.50.0
NewMultiOperationExecutionf returns a new MultiOperationExecution error with formatted message.
func NewNamespaceAlreadyExists ¶
NewNamespaceAlreadyExists returns new NamespaceAlreadyExists error.
func NewNamespaceAlreadyExistsf ¶ added in v1.50.0
NewNamespaceAlreadyExistsf returns new NamespaceAlreadyExists error with formatted message.
func NewNamespaceInvalidState ¶ added in v1.8.0
func NewNamespaceInvalidState(namespace string, state enumspb.NamespaceState, allowedStates []enumspb.NamespaceState) error
NewNamespaceInvalidState returns new NamespaceInvalidState error.
func NewNamespaceNotActive ¶
NewNamespaceNotActive returns new NamespaceNotActive error.
func NewNamespaceNotFound ¶ added in v1.8.0
NewNamespaceNotFound returns new NamespaceNotFound error.
func NewNamespaceUnavailable ¶ added in v1.43.1
NewNamespaceUnavailable returns new NamespaceUnavailable error.
func NewNewerBuildExists ¶ added in v1.21.0
NewNewerBuildExists returns new NewerBuildExists error.
func NewNotFoundf ¶ added in v1.50.0
NewNotFoundf returns new NotFound error with formatted message.
func NewPermissionDenied ¶
NewPermissionDenied returns new PermissionDenied error.
func NewPermissionDeniedf ¶ added in v1.50.0
NewPermissionDeniedf returns new PermissionDenied error with formatted message.
func NewQueryFailed ¶
NewQueryFailed returns new QueryFailed error.
func NewQueryFailedWithFailure ¶ added in v1.43.1
NewQueryFailed returns new QueryFailed error.
func NewQueryFailedWithFailuref ¶ added in v1.50.0
NewQueryFailedWithFailuref returns new QueryFailed error with failure and formatted message.
func NewQueryFailedf ¶ added in v1.50.0
NewQueryFailedf returns new QueryFailed error with formatted message.
func NewResourceExhausted ¶
func NewResourceExhausted(cause enumspb.ResourceExhaustedCause, message string) error
NewResourceExhausted returns new ResourceExhausted error.
func NewResourceExhaustedf ¶ added in v1.50.0
func NewResourceExhaustedf(cause enumspb.ResourceExhaustedCause, format string, args ...any) error
NewResourceExhaustedf returns new ResourceExhausted error with formatted message.
func NewServerVersionNotSupported ¶ added in v1.0.0
NewServerVersionNotSupported returns new ServerVersionNotSupported error.
func NewSystemWorkflow ¶ added in v1.8.0
func NewSystemWorkflow(workflowExecution *common.WorkflowExecution, workflowError error) error
NewSystemWorkflow returns new SystemWorkflow error.
func NewSystemWorkflowf ¶ added in v1.50.0
func NewSystemWorkflowf(workflowExecution *common.WorkflowExecution, format string, args ...any) error
NewSystemWorkflowf returns new SystemWorkflow error with formatted workflow error.
func NewUnavailable ¶
NewUnavailable returns new Unavailable error.
func NewUnavailablef ¶ added in v1.50.0
NewUnavailablef returns new Unavailable error with formatted message.
func NewUnimplemented ¶
NewUnimplemented returns new Unimplemented error.
func NewUnimplementedf ¶ added in v1.50.0
NewUnimplementedf returns new Unimplemented error with formatted message.
func NewWorkflowExecutionAlreadyStarted ¶
NewWorkflowExecutionAlreadyStarted returns new WorkflowExecutionAlreadyStarted error.
func NewWorkflowExecutionAlreadyStartedf ¶ added in v1.50.0
NewWorkflowExecutionAlreadyStartedf returns new WorkflowExecutionAlreadyStarted error with formatted message.
func NewWorkflowNotReady ¶ added in v1.8.0
NewWorkflowNotReady returns new WorkflowNotReady
func NewWorkflowNotReadyf ¶ added in v1.50.0
NewWorkflowNotReadyf returns new WorkflowNotReady error with formatted message.
Types ¶
type Aborted ¶ added in v1.50.1
type Aborted struct {
Message string
// contains filtered or unexported fields
}
Aborted represents an aborted error.
type ActivityExecutionAlreadyStarted ¶ added in v1.62.0
type ActivityExecutionAlreadyStarted struct {
Message string
StartRequestId string
RunId string
// contains filtered or unexported fields
}
ActivityExecutionAlreadyStarted represents workflow execution already started error.
func (*ActivityExecutionAlreadyStarted) Error ¶ added in v1.62.0
func (e *ActivityExecutionAlreadyStarted) Error() string
Error returns string message.
func (*ActivityExecutionAlreadyStarted) Status ¶ added in v1.62.0
func (e *ActivityExecutionAlreadyStarted) Status() *status.Status
type AlreadyExists ¶ added in v1.8.0
type AlreadyExists struct {
Message string
// contains filtered or unexported fields
}
AlreadyExists represents general AlreadyExists gRPC error.
func (*AlreadyExists) Error ¶ added in v1.8.0
func (e *AlreadyExists) Error() string
Error returns string message.
func (*AlreadyExists) Status ¶ added in v1.8.0
func (e *AlreadyExists) Status() *status.Status
type Canceled ¶
type Canceled struct {
Message string
// contains filtered or unexported fields
}
Canceled represents canceled error.
type CancellationAlreadyRequested ¶
type CancellationAlreadyRequested struct {
Message string
// contains filtered or unexported fields
}
CancellationAlreadyRequested represents cancellation already requested error.
func (*CancellationAlreadyRequested) Error ¶
func (e *CancellationAlreadyRequested) Error() string
Error returns string message.
func (*CancellationAlreadyRequested) Status ¶ added in v0.31.0
func (e *CancellationAlreadyRequested) Status() *status.Status
type ClientVersionNotSupported ¶
type ClientVersionNotSupported struct {
Message string
ClientVersion string
ClientName string
SupportedVersions string
// contains filtered or unexported fields
}
ClientVersionNotSupported represents client version is not supported error.
func (*ClientVersionNotSupported) Error ¶
func (e *ClientVersionNotSupported) Error() string
Error returns string message.
func (*ClientVersionNotSupported) Status ¶ added in v0.31.0
func (e *ClientVersionNotSupported) Status() *status.Status
type DataLoss ¶
type DataLoss struct {
Message string
// contains filtered or unexported fields
}
DataLoss represents data loss error.
type DeadlineExceeded ¶
type DeadlineExceeded struct {
Message string
// contains filtered or unexported fields
}
DeadlineExceeded represents deadline exceeded error.
func (*DeadlineExceeded) Error ¶
func (e *DeadlineExceeded) Error() string
Error returns string message.
func (*DeadlineExceeded) Status ¶ added in v0.31.0
func (e *DeadlineExceeded) Status() *status.Status
type FailedPrecondition ¶ added in v1.8.0
type FailedPrecondition struct {
Message string
// contains filtered or unexported fields
}
FailedPrecondition represents failed precondition error.
func (*FailedPrecondition) Error ¶ added in v1.8.0
func (e *FailedPrecondition) Error() string
Error returns string message.
func (*FailedPrecondition) Status ¶ added in v1.8.0
func (e *FailedPrecondition) Status() *status.Status
type Internal ¶
type Internal struct {
Message string
// contains filtered or unexported fields
}
Internal represents internal error.
type InvalidArgument ¶
type InvalidArgument struct {
Message string
// contains filtered or unexported fields
}
InvalidArgument represents invalid argument error.
func (*InvalidArgument) Error ¶
func (e *InvalidArgument) Error() string
Error returns string message.
func (*InvalidArgument) Status ¶ added in v0.31.0
func (e *InvalidArgument) Status() *status.Status
type MultiOperationAborted ¶ added in v1.32.1
type MultiOperationAborted struct {
Message string
// contains filtered or unexported fields
}
MultiOperationAborted represents an aborted operation from a MultiOperationExecution.
func (MultiOperationAborted) Error ¶ added in v1.32.1
func (e MultiOperationAborted) Error() string
Error returns string message.
func (MultiOperationAborted) Status ¶ added in v1.32.1
func (e MultiOperationAborted) Status() *status.Status
type MultiOperationExecution ¶ added in v1.32.1
type MultiOperationExecution struct {
Message string
// contains filtered or unexported fields
}
MultiOperationExecution represents a MultiOperationExecution error.
func (*MultiOperationExecution) Error ¶ added in v1.32.1
func (e *MultiOperationExecution) Error() string
Error returns string message.
func (*MultiOperationExecution) OperationErrors ¶ added in v1.32.1
func (e *MultiOperationExecution) OperationErrors() []error
func (*MultiOperationExecution) Status ¶ added in v1.32.1
func (e *MultiOperationExecution) Status() *status.Status
type NamespaceAlreadyExists ¶
type NamespaceAlreadyExists struct {
Message string
// contains filtered or unexported fields
}
NamespaceAlreadyExists represents namespace already exists error.
func (*NamespaceAlreadyExists) Error ¶
func (e *NamespaceAlreadyExists) Error() string
Error returns string message.
func (*NamespaceAlreadyExists) Status ¶ added in v0.31.0
func (e *NamespaceAlreadyExists) Status() *status.Status
type NamespaceInvalidState ¶ added in v1.8.0
type NamespaceInvalidState struct {
Message string
Namespace string
State enumspb.NamespaceState
AllowedStates []enumspb.NamespaceState
// contains filtered or unexported fields
}
NamespaceInvalidState represents namespace not active error.
func (*NamespaceInvalidState) Error ¶ added in v1.8.0
func (e *NamespaceInvalidState) Error() string
Error returns string message.
func (*NamespaceInvalidState) Status ¶ added in v1.8.0
func (e *NamespaceInvalidState) Status() *status.Status
type NamespaceNotActive ¶
type NamespaceNotActive struct {
Message string
Namespace string
CurrentCluster string
ActiveCluster string
// contains filtered or unexported fields
}
NamespaceNotActive represents namespace not active error.
func (*NamespaceNotActive) Error ¶
func (e *NamespaceNotActive) Error() string
Error returns string message.
func (*NamespaceNotActive) Status ¶ added in v0.31.0
func (e *NamespaceNotActive) Status() *status.Status
type NamespaceNotFound ¶ added in v1.8.0
type NamespaceNotFound struct {
Message string
Namespace string
// contains filtered or unexported fields
}
NamespaceNotFound represents namespace not found error.
func (*NamespaceNotFound) Error ¶ added in v1.8.0
func (e *NamespaceNotFound) Error() string
Error returns string message.
func (*NamespaceNotFound) Status ¶ added in v1.8.0
func (e *NamespaceNotFound) Status() *status.Status
type NamespaceUnavailable ¶ added in v1.43.1
type NamespaceUnavailable struct {
// contains filtered or unexported fields
}
NamespaceUnavailable is returned by the service when a request addresses a namespace that is unavailable. For example, when a namespace is in the process of failing over between clusters. This is a transient error that should be automatically retried by clients.
func (*NamespaceUnavailable) Error ¶ added in v1.43.1
func (e *NamespaceUnavailable) Error() string
Error returns string message.
func (*NamespaceUnavailable) Status ¶ added in v1.43.1
func (e *NamespaceUnavailable) Status() *status.Status
type NewerBuildExists ¶ added in v1.21.0
type NewerBuildExists struct {
Message string
DefaultBuildID string
// contains filtered or unexported fields
}
NewerBuildExists is returned to a poll request from a build that has been superceded by a newer build in versioning metadata.
func (*NewerBuildExists) Error ¶ added in v1.21.0
func (e *NewerBuildExists) Error() string
Error returns string message.
func (*NewerBuildExists) Status ¶ added in v1.21.0
func (e *NewerBuildExists) Status() *status.Status
type NotFound ¶
type NotFound struct {
Message string
CurrentCluster string
ActiveCluster string
// contains filtered or unexported fields
}
NotFound represents not found error.
type PermissionDenied ¶
type PermissionDenied struct {
Message string
Reason string
// contains filtered or unexported fields
}
PermissionDenied represents permission denied error.
func (*PermissionDenied) Error ¶
func (e *PermissionDenied) Error() string
Error returns string message.
func (*PermissionDenied) Status ¶ added in v0.31.0
func (e *PermissionDenied) Status() *status.Status
type QueryFailed ¶
type QueryFailed struct {
Message string
// The full reason for this query failure. May not be available if the response is generated by an old SDK.
Failure *failure.Failure
// contains filtered or unexported fields
}
QueryFailed represents query failed error.
func (*QueryFailed) Status ¶ added in v0.31.0
func (e *QueryFailed) Status() *status.Status
type ResourceExhausted ¶
type ResourceExhausted struct {
Cause enumspb.ResourceExhaustedCause
Scope enumspb.ResourceExhaustedScope
Message string
// contains filtered or unexported fields
}
ResourceExhausted represents resource exhausted error.
func (*ResourceExhausted) Error ¶
func (e *ResourceExhausted) Error() string
Error returns string message.
func (*ResourceExhausted) Status ¶ added in v0.31.0
func (e *ResourceExhausted) Status() *status.Status
type ServerVersionNotSupported ¶ added in v1.0.0
type ServerVersionNotSupported struct {
Message string
ServerVersion string
ClientSupportedServerVersions string
// contains filtered or unexported fields
}
ServerVersionNotSupported represents client version is not supported error.
func (*ServerVersionNotSupported) Error ¶ added in v1.0.0
func (e *ServerVersionNotSupported) Error() string
Error returns string message.
func (*ServerVersionNotSupported) Status ¶ added in v1.0.0
func (e *ServerVersionNotSupported) Status() *status.Status
type ServiceError ¶
type SystemWorkflow ¶ added in v1.8.0
type SystemWorkflow struct {
WorkflowExecution *common.WorkflowExecution
WorkflowError string
// contains filtered or unexported fields
}
SystemWorkflow represents an error that happens during execution of the underlying system workflow
func (*SystemWorkflow) Error ¶ added in v1.8.0
func (e *SystemWorkflow) Error() string
Error returns string message.
func (*SystemWorkflow) Status ¶ added in v1.8.0
func (e *SystemWorkflow) Status() *status.Status
type Unavailable ¶
type Unavailable struct {
// contains filtered or unexported fields
}
Unavailable represents unavailable error.
func (*Unavailable) Status ¶ added in v0.31.0
func (e *Unavailable) Status() *status.Status
type Unimplemented ¶
type Unimplemented struct {
Message string
// contains filtered or unexported fields
}
Unimplemented represents unimplemented error.
func (*Unimplemented) Status ¶ added in v0.31.0
func (e *Unimplemented) Status() *status.Status
type WorkflowExecutionAlreadyStarted ¶
type WorkflowExecutionAlreadyStarted struct {
Message string
StartRequestId string
RunId string
// contains filtered or unexported fields
}
WorkflowExecutionAlreadyStarted represents workflow execution already started error.
func (*WorkflowExecutionAlreadyStarted) Error ¶
func (e *WorkflowExecutionAlreadyStarted) Error() string
Error returns string message.
func (*WorkflowExecutionAlreadyStarted) Status ¶ added in v0.31.0
func (e *WorkflowExecutionAlreadyStarted) Status() *status.Status
type WorkflowNotReady ¶ added in v1.8.0
type WorkflowNotReady struct {
Message string
// contains filtered or unexported fields
}
WorkflowNotReady represents workflow state is not ready to handle the request error.
func (*WorkflowNotReady) Error ¶ added in v1.8.0
func (e *WorkflowNotReady) Error() string
Error returns string message.
func (*WorkflowNotReady) Status ¶ added in v1.8.0
func (e *WorkflowNotReady) Status() *status.Status
Source Files
¶
- aborted.go
- activity_execution_already_started.go
- already_exists.go
- canceled.go
- cancellation_already_requested.go
- client_version_not_supported.go
- convert.go
- data_loss.go
- deadline_exceeded.go
- failed_precondition.go
- internal.go
- invalid_argument.go
- multi_op.go
- multi_op_aborted.go
- namespace_already_exists.go
- namespace_invalid_state.go
- namespace_not_active.go
- namespace_not_found.go
- namespace_unavailable.go
- newer_build_exists.go
- not_found.go
- permission_denied.go
- query_failed.go
- resource_exhausted.go
- server_version_not_supported.go
- serviceerror.go
- system_workflow.go
- unavailable.go
- unimplemented.go
- workflow_execution_already_started.go
- workflow_not_ready.go