errors

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Copyright © 2020 Marvin

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MSError

type MSError struct {
	// contains filtered or unexported fields
}

MSError returns business error

func NewMSError

func NewMSError(errType MSErrorType, errDomain MSErrorDomain, err error) MSError

func (MSError) Error

func (e MSError) Error() string

func (MSError) GetCodeText

func (e MSError) GetCodeText() string

func (MSError) GetErrDomain

func (e MSError) GetErrDomain() string

type MSErrorDomain

type MSErrorDomain string
const (
	DOMAIN_DB      MSErrorDomain = "DB"
	DOMAIN_CONFIG  MSErrorDomain = "CONFIG"
	DOMAIN_ASSESS  MSErrorDomain = "ASSESS"
	DOMAIN_REVERSE MSErrorDomain = "REVERSE"
	DOMAIN_CHECK   MSErrorDomain = "CHECK"

	DOMAIN_SQL_MIGRATION  MSErrorDomain = "SQL_MIGRATION"
	DOMAIN_CSV_MIGRATION  MSErrorDomain = "CSV_MIGRATION"
	DOMAIN_INCR_MIGRATION MSErrorDomain = "INCR_MIGRATION"

	DOMAIN_DATA_COMPARE MSErrorDomain = "DATA_COMPARE"
)

program error domain

func (MSErrorDomain) Explain

func (d MSErrorDomain) Explain() string

type MSErrorType

type MSErrorType string
const (
	TRANSFERDB MSErrorType = "TRANSFERDB"
)

program error type

func (MSErrorType) Explain

func (t MSErrorType) Explain() string

Jump to

Keyboard shortcuts

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