...

Source file src/sigs.k8s.io/cli-utils/pkg/apply/error/error.go

Documentation: sigs.k8s.io/cli-utils/pkg/apply/error

     1  // Copyright 2019 The Kubernetes Authors.
     2  // SPDX-License-Identifier: Apache-2.0
     3  package error
     4  
     5  type UnknownTypeError struct {
     6  	err error
     7  }
     8  
     9  func (e *UnknownTypeError) Error() string {
    10  	return e.err.Error()
    11  }
    12  
    13  func NewUnknownTypeError(err error) *UnknownTypeError {
    14  	return &UnknownTypeError{err: err}
    15  }
    16  
    17  type ApplyRunError struct {
    18  	err error
    19  }
    20  
    21  func (e *ApplyRunError) Error() string {
    22  	return e.err.Error()
    23  }
    24  
    25  func NewApplyRunError(err error) *ApplyRunError {
    26  	return &ApplyRunError{err: err}
    27  }
    28  
    29  type InitializeApplyOptionError struct {
    30  	err error
    31  }
    32  
    33  func (e *InitializeApplyOptionError) Error() string {
    34  	return e.err.Error()
    35  }
    36  
    37  func NewInitializeApplyOptionError(err error) *InitializeApplyOptionError {
    38  	return &InitializeApplyOptionError{err: err}
    39  }
    40  

View as plain text