github.com/buildpacks/pack@v0.33.3-0.20240516162812-884dd1837311/pkg/client/errors.go (about) 1 package client 2 3 // ExperimentError denotes that an experimental feature was trying to be used without experimental features enabled. 4 type ExperimentError struct { 5 msg string 6 } 7 8 func NewExperimentError(msg string) ExperimentError { 9 return ExperimentError{msg} 10 } 11 12 func (ee ExperimentError) Error() string { 13 return ee.msg 14 } 15 16 // SoftError is an error that is not intended to be displayed. 17 type SoftError struct{} 18 19 func NewSoftError() SoftError { 20 return SoftError{} 21 } 22 23 func (se SoftError) Error() string { 24 return "" 25 }