github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/rts/v1/stacks/errors.go (about)

     1  package stacks
     2  
     3  import (
     4  	"fmt"
     5  
     6  	"github.com/opentelekomcloud/gophertelekomcloud"
     7  )
     8  
     9  type ErrInvalidEnvironment struct {
    10  	golangsdk.BaseError
    11  	Section string
    12  }
    13  
    14  func (e ErrInvalidEnvironment) Error() string {
    15  	return fmt.Sprintf("Environment has wrong section: %s", e.Section)
    16  }
    17  
    18  type ErrInvalidDataFormat struct {
    19  	golangsdk.BaseError
    20  }
    21  
    22  func (e ErrInvalidDataFormat) Error() string {
    23  	return "Data in neither json nor yaml format."
    24  }
    25  
    26  type ErrInvalidTemplateFormatVersion struct {
    27  	golangsdk.BaseError
    28  	Version string
    29  }
    30  
    31  func (e ErrInvalidTemplateFormatVersion) Error() string {
    32  	return "Template format version not found."
    33  }