Documentation
¶
Overview ¶
Package errors provides error handling utilities with colored terminal output for the CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDirectoryInaccessibleError ¶
NewDirectoryInaccessibleError creates an error for when a directory cannot be accessed.
func NewNotADirectoryError ¶
NewNotADirectoryError creates an error for when a path is not a directory.
func NewPathNotSpecifiedError ¶
func NewPathNotSpecifiedError() error
NewPathNotSpecifiedError creates an error for when a path is not specified.
Types ¶
type ErrorType ¶
type ErrorType int
func (ErrorType) IsFatalError ¶
IsFatalError returns true if the error type is fatal and should cause the program to exit.
type InputDirectoryError ¶
func (*InputDirectoryError) Error ¶
func (e *InputDirectoryError) Error() string
Error implements the error interface.
func (*InputDirectoryError) HandlerString ¶
func (e *InputDirectoryError) HandlerString() string
HandlerString returns a colored error string for CLI display.
Click to show internal directories.
Click to hide internal directories.