1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00
sap-jenkins-library/pkg/config/errors.go
Oliver Nocon c1eb9f5c70
Provide first parts for golang implementation (#905)
* Provide first parts for golang implementation
2019-10-22 15:41:27 +02:00

19 lines
372 B
Go

package config
// ParseError defines an error type for configuration parsing errors
type ParseError struct {
message string
}
// NewParseError creates a new ParseError
func NewParseError(message string) *ParseError {
return &ParseError{
message: message,
}
}
// Error returns the message of the ParseError
func (e *ParseError) Error() string {
return e.message
}