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.
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.
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) GetCodeText ¶
func (MSError) GetErrDomain ¶
type MSErrorDomain ¶
type MSErrorDomain string
const ( DOMAIN_CONFIG MSErrorDomain = common.TaskTypeConfig DOMAIN_DB MSErrorDomain = common.TaskTypeDatabase DOMAIN_ASSESS MSErrorDomain = common.TaskTypeObjectAssess DOMAIN_REVERSE MSErrorDomain = common.TaskTypeObjectReverse DOMAIN_CHECK MSErrorDomain = common.TaskTypeObjectCheck DOMAIN_SQL_MIGRATION MSErrorDomain = common.TaskTypeDataSQLMigrate DOMAIN_CSV_MIGRATION MSErrorDomain = common.TaskTypeDataCSVMigrate DOMAIN_INCR_MIGRATION MSErrorDomain = common.TaskTypeDataIncrMigrate DOMAIN_DATA_COMPARE MSErrorDomain = common.TaskTypeDataCompare )
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