errors

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsControllerError

func IsControllerError(err error) bool

Types

type ControllerError

type ControllerError interface {
	error
	IsFinal() bool
}

type DatabaseCreationError

type DatabaseCreationError struct {
	DatabaseType      DatabaseType
	EnvironmentConfig EnvironmentConfig
	Reason            string
}

func (DatabaseCreationError) Error

func (r DatabaseCreationError) Error() string

func (DatabaseCreationError) IsFinal

func (r DatabaseCreationError) IsFinal() bool

type DatabaseInitError

type DatabaseInitError struct {
	SiteName    string
	ServiceName string
	Reason      string
}

func (DatabaseInitError) Error

func (r DatabaseInitError) Error() string

func (DatabaseInitError) IsFinal

func (r DatabaseInitError) IsFinal() bool

type DatabaseMigrationError

type DatabaseMigrationError struct {
	SiteName    string
	ServiceName string
	Reason      string
}

func (DatabaseMigrationError) Error

func (r DatabaseMigrationError) Error() string

func (DatabaseMigrationError) IsFinal

func (r DatabaseMigrationError) IsFinal() bool

type DatabaseType

type DatabaseType string
const (
	DatabaseTypeMongo DatabaseType = "Mongo"
	DatabaseTypeMysql DatabaseType = "Mysql"
	DatabaseTypeRedis DatabaseType = "Redis"
)

type EnvironmentConfig

type EnvironmentConfig interface {
	GetSiteName() string
	GetServiceName() string
	GetEnvironment() string
}

type UnresolvedTemplatesError

type UnresolvedTemplatesError struct {
	UnresolvedTemplateVariables []string
	AvailableTemplateVariables  []string
	EntityType                  string
	Key                         string
}

func (UnresolvedTemplatesError) Error

func (r UnresolvedTemplatesError) Error() string

func (UnresolvedTemplatesError) IsFinal

func (r UnresolvedTemplatesError) IsFinal() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL