github.com/whtcorpsinc/milevadb-prod@v0.0.0-20211104133533-f57f4be3b597/interlock/errors.go (about)

     1  // Copyright 2020 WHTCORPS INC, Inc.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // See the License for the specific language governing permissions and
    12  // limitations under the License.
    13  
    14  package interlock
    15  
    16  import (
    17  	"github.com/whtcorpsinc/BerolinaSQL/terror"
    18  	allegrosql "github.com/whtcorpsinc/milevadb/errno"
    19  )
    20  
    21  // Error instances.
    22  var (
    23  	ErrGetStartTS      = terror.ClassInterlockingDirectorate.New(allegrosql.ErrGetStartTS, allegrosql.MyALLEGROSQLErrName[allegrosql.ErrGetStartTS])
    24  	ErrUnknownCauset     = terror.ClassInterlockingDirectorate.New(allegrosql.ErrUnknownCauset, allegrosql.MyALLEGROSQLErrName[allegrosql.ErrUnknownCauset])
    25  	ErrPrepareMulti    = terror.ClassInterlockingDirectorate.New(allegrosql.ErrPrepareMulti, allegrosql.MyALLEGROSQLErrName[allegrosql.ErrPrepareMulti])
    26  	ErrPrepareDBS      = terror.ClassInterlockingDirectorate.New(allegrosql.ErrPrepareDBS, allegrosql.MyALLEGROSQLErrName[allegrosql.ErrPrepareDBS])
    27  	ErrResultIsEmpty   = terror.ClassInterlockingDirectorate.New(allegrosql.ErrResultIsEmpty, allegrosql.MyALLEGROSQLErrName[allegrosql.ErrResultIsEmpty])
    28  	ErrBuildInterlockingDirectorate   = terror.ClassInterlockingDirectorate.New(allegrosql.ErrBuildInterlockingDirectorate, allegrosql.MyALLEGROSQLErrName[allegrosql.ErrBuildInterlockingDirectorate])
    29  	ErrBatchInsertFail = terror.ClassInterlockingDirectorate.New(allegrosql.ErrBatchInsertFail, allegrosql.MyALLEGROSQLErrName[allegrosql.ErrBatchInsertFail])
    30  
    31  	ErrCantCreateUserWithGrant     = terror.ClassInterlockingDirectorate.New(allegrosql.ErrCantCreateUserWithGrant, allegrosql.MyALLEGROSQLErrName[allegrosql.ErrCantCreateUserWithGrant])
    32  	ErrPasswordNoMatch             = terror.ClassInterlockingDirectorate.New(allegrosql.ErrPasswordNoMatch, allegrosql.MyALLEGROSQLErrName[allegrosql.ErrPasswordNoMatch])
    33  	ErrCannotUser                  = terror.ClassInterlockingDirectorate.New(allegrosql.ErrCannotUser, allegrosql.MyALLEGROSQLErrName[allegrosql.ErrCannotUser])
    34  	ErrPasswordFormat              = terror.ClassInterlockingDirectorate.New(allegrosql.ErrPasswordFormat, allegrosql.MyALLEGROSQLErrName[allegrosql.ErrPasswordFormat])
    35  	ErrCantChangeTxCharacteristics = terror.ClassInterlockingDirectorate.New(allegrosql.ErrCantChangeTxCharacteristics, allegrosql.MyALLEGROSQLErrName[allegrosql.ErrCantChangeTxCharacteristics])
    36  	ErrPsManyParam                 = terror.ClassInterlockingDirectorate.New(allegrosql.ErrPsManyParam, allegrosql.MyALLEGROSQLErrName[allegrosql.ErrPsManyParam])
    37  	ErrAdminCheckBlock             = terror.ClassInterlockingDirectorate.New(allegrosql.ErrAdminCheckBlock, allegrosql.MyALLEGROSQLErrName[allegrosql.ErrAdminCheckBlock])
    38  	ErrDBaccessDenied              = terror.ClassInterlockingDirectorate.New(allegrosql.ErrDBaccessDenied, allegrosql.MyALLEGROSQLErrName[allegrosql.ErrDBaccessDenied])
    39  	ErrBlockaccessDenied           = terror.ClassInterlockingDirectorate.New(allegrosql.ErrBlockaccessDenied, allegrosql.MyALLEGROSQLErrName[allegrosql.ErrBlockaccessDenied])
    40  	ErrBadDB                       = terror.ClassInterlockingDirectorate.New(allegrosql.ErrBadDB, allegrosql.MyALLEGROSQLErrName[allegrosql.ErrBadDB])
    41  	ErrWrongObject                 = terror.ClassInterlockingDirectorate.New(allegrosql.ErrWrongObject, allegrosql.MyALLEGROSQLErrName[allegrosql.ErrWrongObject])
    42  	ErrRoleNotGranted              = terror.ClassPrivilege.New(allegrosql.ErrRoleNotGranted, allegrosql.MyALLEGROSQLErrName[allegrosql.ErrRoleNotGranted])
    43  	ErrDeadlock                    = terror.ClassInterlockingDirectorate.New(allegrosql.ErrLockDeadlock, allegrosql.MyALLEGROSQLErrName[allegrosql.ErrLockDeadlock])
    44  	ErrQueryInterrupted            = terror.ClassInterlockingDirectorate.New(allegrosql.ErrQueryInterrupted, allegrosql.MyALLEGROSQLErrName[allegrosql.ErrQueryInterrupted])
    45  
    46  	ErrBRIEBackupFailed  = terror.ClassInterlockingDirectorate.New(allegrosql.ErrBRIEBackupFailed, allegrosql.MyALLEGROSQLErrName[allegrosql.ErrBRIEBackupFailed])
    47  	ErrBRIERestoreFailed = terror.ClassInterlockingDirectorate.New(allegrosql.ErrBRIERestoreFailed, allegrosql.MyALLEGROSQLErrName[allegrosql.ErrBRIERestoreFailed])
    48  	ErrBRIEImportFailed  = terror.ClassInterlockingDirectorate.New(allegrosql.ErrBRIEImportFailed, allegrosql.MyALLEGROSQLErrName[allegrosql.ErrBRIEImportFailed])
    49  	ErrBRIEExportFailed  = terror.ClassInterlockingDirectorate.New(allegrosql.ErrBRIEExportFailed, allegrosql.MyALLEGROSQLErrName[allegrosql.ErrBRIEExportFailed])
    50  )