blob: 01f4f942b271c003378fd3401c7bbc950189c450 [file] [log] [blame]
Jon Perrittfea90732016-03-15 02:57:05 -05001package stacks
2
3import (
4 "fmt"
5
Krzysztof Szukiełojć3f41d082017-05-07 14:43:06 +02006 "gerrit.mcp.mirantis.net/debian/gophercloud.git"
Jon Perrittfea90732016-03-15 02:57:05 -05007)
8
9type ErrInvalidEnvironment struct {
10 gophercloud.BaseError
11 Section string
12}
13
14func (e ErrInvalidEnvironment) Error() string {
15 return fmt.Sprintf("Environment has wrong section: %s", e.Section)
16}
17
18type ErrInvalidDataFormat struct {
19 gophercloud.BaseError
20}
21
22func (e ErrInvalidDataFormat) Error() string {
23 return fmt.Sprintf("Data in neither json nor yaml format.")
24}
25
26type ErrInvalidTemplateFormatVersion struct {
27 gophercloud.BaseError
28 Version string
29}
30
31func (e ErrInvalidTemplateFormatVersion) Error() string {
32 return fmt.Sprintf("Template format version not found.")
33}