All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javax.xml.bind.PropertyException Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2003, 2004  The Apache Software Foundation
 * 
 * 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.

 */
package javax.xml.bind;

/** 

The PropertyException is a subclass of the * {@link javax.xml.bind.JAXBException} being thrown if setting * or getting a property failed.

* * @author JSR-31 * @since JAXB1.0 */ public class PropertyException extends JAXBException { /**

Creates a new PropertyException with the specified * detail message.

* @param pMessage The detail message. */ public PropertyException(String pMessage) { super(pMessage); } /**

Creates a new PropertyException with the specified * detail message and vendor specific error code.

* @param pMessage The detail message. * @param pErrorCode The error code. */ public PropertyException(String pMessage, String pErrorCode) { super(pMessage, pErrorCode); } /**

Creates a new PropertyException with the specified * linked exception.

* @param pLinkedException The linked exception. */ public PropertyException(Throwable pLinkedException) { super(pLinkedException); } /**

Creates a new PropertyException with the specified * detail message and linked exception.

* @param pMessage The detail message. * @param pLinkedException The linked exception. */ public PropertyException(String pMessage, Throwable pLinkedException) { super(pMessage, pLinkedException); } /**

Creates a new PropertyException with the specified * detail message, error code, and linked exception.

* @param pMessage The detail message. * @param pErrorCode The vendor specific error code. * @param pLinkedException The linked exception. */ public PropertyException(String pMessage, String pErrorCode, Throwable pLinkedException) { super(pMessage, pErrorCode, pLinkedException); } /**

Creates a new PropertyException> by invoking * {@link #PropertyException(String)} with a message derived from * pName and pValue.toString().

* @param pName A Property name. * @param pValue A property value. */ public PropertyException(String pName, Object pValue) { super("Property error: name=" + pName + ", value=" + pValue); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy