+++ /dev/null
-/*\r
- * Copyright (c) 2003 University of Murcia. All rights reserved.\r
- * --------------------------------------------------------------\r
- * For more information, please see <http://www.umu.euro6ix.org/>.\r
- */\r
-\r
-package org.umu.cops.stack;\r
-\r
-\r
-\r
-/**\r
- * COPS Provisioning Global Error\r
- *\r
- * @version COPSPrGlobalError.java, v 1.00 2003\r
- *\r
- */\r
-public class COPSPrGlobalError extends COPSPrError {\r
-\r
- public final static byte G_availMemoryLow = 1;\r
- public final static byte G_availMemoryExhausted = 2;\r
- public final static byte G_unknownASN1Tag = 3;\r
- public final static byte G_maxMsgSizeExceeded = 4;\r
- public final static byte G_unknownError = 5;\r
- public final static byte G_maxReqStateOpen = 6;\r
- public final static byte G_invalidASN1Length = 7;\r
- public final static byte G_invalidObjPad = 8;\r
- public final static byte G_unknownPIBData = 9;\r
- public final static byte G_unknownCOPSPrObj = 10;\r
- public final static byte G_malformedDec = 11;\r
- public final static byte G_errmax = 12;\r
-\r
-\r
- private final static String GerrTable[] = {\r
- "Reserved",\r
- "Available memory low",\r
- "Available memory exhausted",\r
- "Unknown ASN.1 tag",\r
- "Max. message size exceeded",\r
- "Unknown error",\r
- "No more Request-states can be created by the PEP",\r
- "ASN.1 object length was incorrect",\r
- "Object was not properly padded",\r
- "Unknown PIB data",\r
- "Unknown COPS-PR object",\r
- "Melformed decision"\r
- };\r
-\r
- ///\r
- COPSPrGlobalError(short eCode, short eSubCode) {\r
- super(eCode, eSubCode);\r
- _sNum = COPSPrObjBase.PR_GPERR;\r
- _sType = COPSPrObjBase.PR_BER;\r
- }\r
-\r
- /**\r
- Parse the data and create a PrGlobalError object\r
- */\r
- protected COPSPrGlobalError(byte[] dataPtr) {\r
- super(dataPtr);\r
- }\r
-\r
-\r
- /**\r
- * Method isGlobalPrError\r
- *\r
- * @return a boolean\r
- *\r
- */\r
- public boolean isGlobalPrError() {\r
- return true;\r
- }\r
-\r
- /**\r
- * Method strError\r
- *\r
- * @return a String\r
- *\r
- */\r
- public String strError() {\r
- return GerrTable[_errCode];\r
- };\r
-\r
-};\r
-\r