mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-03-31 22:05:11 +02:00
19 lines
374 B
Go
19 lines
374 B
Go
|
package format
|
||
|
|
||
|
// ParseError defines an error type for assessment file 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
|
||
|
}
|