public static SDOException sdoJaxbNoDescriptorForType(QName sdoQName, QName xmlQName) { Object[] args = {sdoQName.toString(), xmlQName.toString()}; SDOException exception = new SDOException(ExceptionMessageGenerator.buildMessage(SDOException.class, SDO_JAXB_NO_DESCRIPTOR_FOR_TYPE, args)); exception.setErrorCode(SDO_JAXB_NO_DESCRIPTOR_FOR_TYPE); return exception; }
public static SDOException sdoJaxbNoTypeForClassBySchemaContext(Class clazz, QName schemaContext) { Object[] args = {clazz.toString(), schemaContext.toString()}; SDOException exception = new SDOException(ExceptionMessageGenerator.buildMessage(SDOException.class, SDO_JAXB_NO_TYPE_FOR_CLASS_BY_SCHEMA_CONTEXT, args)); exception.setErrorCode(SDO_JAXB_NO_TYPE_FOR_CLASS_BY_SCHEMA_CONTEXT); return exception; }
/** * INTERNAL: * Return an exception when attempting to add a setting to a sequene that already has * an existing entry. The existing entry will not be updated or moved to the end of the sequence. * This exception occurs only for complex single types. */ public static SDOException sequenceDuplicateSettingNotSupportedForComplexSingleObject(int index, String settingPropertyName) { Object[] args = { Integer.valueOf(index), settingPropertyName }; SDOException exception = new SDOException(ExceptionMessageGenerator.buildMessage(SDOException.class, SEQUENCE_DUPLICATE_ADD_NOT_SUPPORTED, args)); exception.setErrorCode(SEQUENCE_DUPLICATE_ADD_NOT_SUPPORTED); return exception; }
/** * INTERNAL: * Exception when trying to find a property at an invalid index */ public static SDOException propertyNotFoundAtIndex(Exception e, int propIndex) { Object[] args = { Integer.valueOf(propIndex) }; SDOException exception = new SDOException(ExceptionMessageGenerator.buildMessage(SDOException.class, PROPERTY_NOT_FOUND_AT_INDEX, args), e); exception.setErrorCode(PROPERTY_NOT_FOUND_AT_INDEX); return exception; }
/** * INTERNAL: * Exception when acquiring the SDOHelperContext cache key for WLS. This method should be * used when an attempt to create an InitialContext fails. */ public static SDOException errorCreatingWLSInitialContext(Exception nestedException) { Object[] args = {}; SDOException exception = new SDOException(ExceptionMessageGenerator.buildMessage(// SDOException.class, ERROR_CREATING_INITIAL_CONTEXT, args), nestedException); exception.setErrorCode(ERROR_CREATING_INITIAL_CONTEXT); return exception; }
/** * INTERNAL: * Exception when sequence is null on a dataObject with sequenced set to true */ public static SDOException sequenceNullOnSequencedDataObject() { Object[] args = { }; SDOException exception = new SDOException(ExceptionMessageGenerator.buildMessage(SDOException.class, SEQUENCE_NULL_ON_SEQUENCED_DATAOBJECT, args)); exception.setErrorCode(SEQUENCE_NULL_ON_SEQUENCED_DATAOBJECT); return exception; }
/** * INTERNAL: * Exception trying to call a method with a null input parameter */ public static SDOException cannotPerformOperationWithNullInputParameter(String operation, String parameter) { Object[] args = { operation, parameter }; SDOException exception = new SDOException(ExceptionMessageGenerator.buildMessage(SDOException.class, CANNOT_PERFORM_OP_WITH_NULL_PARAM, args)); exception.setErrorCode(CANNOT_PERFORM_OP_WITH_NULL_PARAM); return exception; }
/** * INTERNAL: Exception trying to call a method with a null input parameter */ public static SDOException invalidPropertyValue(String property, String type, String valueType, String value, ConversionException coe) { Object[] args = { value, valueType, property, type }; SDOException exception = new SDOException(ExceptionMessageGenerator.buildMessage(SDOException.class, INVALID_PROPERTY_VALUE, args), coe); exception.setErrorCode(INVALID_PROPERTY_VALUE); return exception; }
/** * INTERNAL: * Exception trying to create a dataObject with a type with the given interface */ public static SDOException errorCreatingDataObjectForClass(Exception nestedException, String className, String uri, String name) { Object[] args = { className, uri, name }; SDOException exception = new SDOException(ExceptionMessageGenerator.buildMessage(SDOException.class, ERROR_CREATING_DATAOBJECT_FOR_CLASS, args), nestedException); exception.setErrorCode(ERROR_CREATING_DATAOBJECT_FOR_CLASS); return exception; }
/** * INTERNAL: * Exception when an sdo:ref attribute is missing during xmlhelper.load */ public static SDOException missingRefAttribute() { Object[] args = { }; SDOException exception = new SDOException(ExceptionMessageGenerator.buildMessage(SDOException.class, MISSING_REF_ATTRIBUTE, args)); exception.setErrorCode(MISSING_REF_ATTRIBUTE); return exception; }
/** * INTERNAL: * Exception processing an xpath during xmlhelper.load */ public static SDOException errorProcessingXPath(String xpath) { Object[] args = { xpath }; SDOException exception = new SDOException(ExceptionMessageGenerator.buildMessage(SDOException.class, ERROR_PROCESSING_XPATH, args)); exception.setErrorCode(ERROR_PROCESSING_XPATH); return exception; }
/** * INTERNAL: * thrown from SDOXMLHelperDelegate */ public static SDOException optionsMustBeADataObject(Exception nestedException, String uri, String name) { Object[] args = {uri, name}; SDOException exception = new SDOException(ExceptionMessageGenerator.buildMessage(SDOException.class, OPTIONS_MUST_BE_A_DATAOBJECT, args), nestedException); exception.setErrorCode(OPTIONS_MUST_BE_A_DATAOBJECT); return exception; }
/** * INTERNAL: * thrown from SDOXMLHelperDelegate */ public static SDOException typePropertyMustBeAType(Exception nestedException) { Object[] args = {}; SDOException exception = new SDOException(ExceptionMessageGenerator.buildMessage(SDOException.class, TYPE_PROPERTY_MUST_BE_A_TYPE, args), nestedException); exception.setErrorCode(TYPE_PROPERTY_MUST_BE_A_TYPE); return exception; }
public static SDOException sdoJaxbNoMappingForProperty(String propertyName, String xPath) { Object[] args = {propertyName, xPath}; SDOException exception = new SDOException(ExceptionMessageGenerator.buildMessage(SDOException.class, SDO_JAXB_NO_MAPPING_FOR_PROPERTY, args)); exception.setErrorCode(SDO_JAXB_NO_MAPPING_FOR_PROPERTY); return exception; }
/** * INTERNAL: * Exception when processing an import during xsdhelper.define */ public static SDOException errorProcessingImport(String schemaLocation, String namespace, Exception nestedException) { Object[] args = { schemaLocation, namespace }; SDOException exception = new SDOException(ExceptionMessageGenerator.buildMessage(// SDOException.class, ERROR_PROCESSING_IMPORT, args), nestedException); exception.setErrorCode(ERROR_PROCESSING_IMPORT); return exception; }
/** * INTERNAL: * Exception when trying to find a referenced property during xsdhelper.define */ public static SDOException referencedPropertyNotFound(String uri, String localName) { Object[] args = { uri, localName }; SDOException exception = new SDOException(ExceptionMessageGenerator.buildMessage(SDOException.class, REFERENCED_PROPERTY_NOT_FOUND, args)); exception.setErrorCode(REFERENCED_PROPERTY_NOT_FOUND); return exception; }
/** * INTERNAL: * Exception when old sequence is not found in the changesummary */ public static SDOException oldSequenceNotFound() { Object[] args = { }; SDOException exception = new SDOException(ExceptionMessageGenerator.buildMessage(SDOException.class, OLD_SEQUENCE_NOT_FOUND, args)); exception.setErrorCode(OLD_SEQUENCE_NOT_FOUND); return exception; }
/** * INTERNAL: * Exception trying to create a dataObject with a type with the given uri and name */ public static SDOException errorCreatingDataObjectForType(String uri, String name) { Object[] args = { uri, name }; SDOException exception = new SDOException(ExceptionMessageGenerator.buildMessage(SDOException.class, ERROR_CREATING_DATAOBJECT_FOR_TYPE, args)); exception.setErrorCode(ERROR_CREATING_DATAOBJECT_FOR_TYPE); return exception; }
/** * INTERNAL: * Error passing in a null dataObject into the sequence constructor */ public static SDOException sequenceDataObjectInstanceFieldIsNull() { Object[] args = { }; SDOException exception = new SDOException(ExceptionMessageGenerator.buildMessage(SDOException.class, SEQUENCE_ERROR_DATAOBJECT_IS_NULL, args)); exception.setErrorCode(SEQUENCE_ERROR_DATAOBJECT_IS_NULL); return exception; }
/** * INTERNAL: * Exception when trying to perform an operation with a null argument */ public static SDOException cannotPerformOperationOnNullArgument(String methodName) { Object[] args = { methodName}; SDOException exception = new SDOException(ExceptionMessageGenerator.buildMessage(SDOException.class, CANNOT_PERFORM_OPERATION_ON_NULL_ARGUMENT, args)); exception.setErrorCode(CANNOT_PERFORM_OPERATION_ON_NULL_ARGUMENT); return exception; }