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.
27 lines
645 B
27 lines
645 B
4 years ago
|
package errors
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
)
|
||
|
|
||
|
// Raised when config file is missing
|
||
|
type ConfigFileMissingError string
|
||
|
|
||
|
func (str ConfigFileMissingError) Error() string {
|
||
|
return fmt.Sprintf("ConfigFileMissingError: %q", string(str))
|
||
|
}
|
||
|
|
||
|
// Raised when the config file doesnt match schema
|
||
|
type ConfigValidationError string
|
||
|
|
||
|
func (str ConfigValidationError) Error() string {
|
||
|
return fmt.Sprintf("ConfigValidationError: %q", string(str))
|
||
|
}
|
||
|
|
||
|
// Raised when a dependency (like smartd or ssh-agent) is missing
|
||
|
type DependencyMissingError string
|
||
|
|
||
|
func (str DependencyMissingError) Error() string {
|
||
|
return fmt.Sprintf("DependencyMissingError: %q", string(str))
|
||
|
}
|