Coverage Report - org.apache.commons.transaction.file.ResourceManagerErrorCodes
 
Classes in this File Line Coverage Branch Coverage Complexity
ResourceManagerErrorCodes
N/A
N/A
0
 
 1  
 /*
 2  
  * Licensed to the Apache Software Foundation (ASF) under one or more
 3  
  * contributor license agreements.  See the NOTICE file distributed with
 4  
  * this work for additional information regarding copyright ownership.
 5  
  * The ASF licenses this file to You under the Apache License, Version 2.0
 6  
  * (the "License"); you may not use this file except in compliance with
 7  
  * the License.  You may obtain a copy of the License at
 8  
  *
 9  
  *     http://www.apache.org/licenses/LICENSE-2.0
 10  
  *
 11  
  * Unless required by applicable law or agreed to in writing, software
 12  
  * distributed under the License is distributed on an "AS IS" BASIS,
 13  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 14  
  * See the License for the specific language governing permissions and
 15  
  * limitations under the License.
 16  
  */
 17  
 package org.apache.commons.transaction.file;
 18  
 
 19  
 /**
 20  
  * Error codes for resource managers.
 21  
  * 
 22  
  * @version $Id: ResourceManagerErrorCodes.java 493628 2007-01-07 01:42:48Z joerg $
 23  
  * @see ResourceManager
 24  
  * @see ResourceManagerException
 25  
  * @see ResourceManagerSystemException
 26  
  */
 27  
 public interface ResourceManagerErrorCodes {
 28  
 
 29  
     /**
 30  
      * Error code: unknown error
 31  
      */
 32  
     public static final int ERR_UNKNOWN = -1;
 33  
 
 34  
     /**
 35  
      * Error code: general system error
 36  
      */
 37  
     public static final int ERR_SYSTEM = 1;
 38  
 
 39  
     /**
 40  
      * Error code: global inconsistent data system error
 41  
      */
 42  
     public static final int ERR_SYSTEM_INCONSISTENT = ERR_SYSTEM + 1;
 43  
 
 44  
     /**
 45  
      * Error code: inconsistent transaction data system error
 46  
      */
 47  
     public static final int ERR_TX_INCONSISTENT = ERR_SYSTEM + 2;
 48  
 
 49  
     /**
 50  
      * Error code: no transaction error
 51  
      */
 52  
     public static final int ERR_NO_TX = 1000;
 53  
 
 54  
     /**
 55  
      * Error code: transaction identifier invalid error
 56  
      */
 57  
     public static final int ERR_TXID_INVALID = ERR_NO_TX + 1;
 58  
 
 59  
     /**
 60  
      * Error code: transaction inactive error
 61  
      */
 62  
     public static final int ERR_TX_INACTIVE = ERR_NO_TX + 2;
 63  
 
 64  
     /**
 65  
      * Error code: transaction identifier already exists error
 66  
      */
 67  
     public static final int ERR_DUP_TX = ERR_NO_TX + 4;
 68  
     
 69  
     /**
 70  
      * Error code: calling thread is not owner of transaction error (only in single thread implementations)
 71  
      */
 72  
     public static final int ERR_THREAD_INVALID = ERR_NO_TX + 5;
 73  
     
 74  
     /**
 75  
      * Error code: requested isolation level is not supported for this transaction error 
 76  
      */
 77  
     public static final int ERR_ISOLATION_LEVEL_UNSUPPORTED = ERR_NO_TX + 6;
 78  
     
 79  
     /**
 80  
      * Error code: operation not possible as transaction is alredy marked for rollback error
 81  
      */
 82  
     public static final int ERR_MARKED_FOR_ROLLBACK = ERR_NO_TX + 7;
 83  
 
 84  
     /**
 85  
      * Error code: resource identifier invalid error
 86  
      */
 87  
     public static final int ERR_RESOURCEID_INVALID = 4000;
 88  
 
 89  
     /**
 90  
      * Error code: resource already exists error
 91  
      */
 92  
     public static final int ERR_RESOURCE_EXISTS = ERR_RESOURCEID_INVALID + 1;
 93  
     
 94  
     /**
 95  
      * Error code: resource does not exist error
 96  
      */
 97  
     public static final int ERR_NO_SUCH_RESOURCE = ERR_RESOURCEID_INVALID + 2;
 98  
 
 99  
     /**
 100  
      * Error code: general lock error
 101  
      */
 102  
     public static final int ERR_LOCK = 5000;
 103  
 
 104  
     /**
 105  
      * Error code: lock could not be acquired error
 106  
      */
 107  
     public static final int ERR_NO_LOCK = ERR_LOCK + 1;
 108  
 
 109  
     /**
 110  
      * Error code: lock could not be acquired error
 111  
      */
 112  
     public static final int ERR_DEAD_LOCK = ERR_LOCK + 2;
 113  
 
 114  
 
 115  
 }