You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
386 B
20 lines
386 B
package ini
|
|
|
|
// ParseError is an error which is returned during any part of
|
|
// the parsing process.
|
|
type ParseError struct {
|
|
msg string
|
|
}
|
|
|
|
// NewParseError will return a new ParseError where message
|
|
// is the description of the error.
|
|
func NewParseError(message string) *ParseError {
|
|
return &ParseError{
|
|
msg: message,
|
|
}
|
|
}
|
|
|
|
func (err *ParseError) Error() string {
|
|
return err.msg
|
|
}
|