Skip to content

Package: InvalidPropertyException

InvalidPropertyException

nameinstructionbranchcomplexitylinemethod
InvalidPropertyException()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
InvalidPropertyException(String)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
InvalidPropertyException(String, String)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
InvalidPropertyException(String, Throwable)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
InvalidPropertyException(Throwable)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
getInvalidPropertyDescriptors()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
setInvalidPropertyDescriptors(PropertyDescriptor[])
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*
2: * Copyright (c) 1997, 2020 Oracle and/or its affiliates. All rights reserved.
3: *
4: * This program and the accompanying materials are made available under the
5: * terms of the Eclipse Public License v. 2.0, which is available at
6: * http://www.eclipse.org/legal/epl-2.0.
7: *
8: * This Source Code may also be made available under the following Secondary
9: * Licenses when the conditions for such availability set forth in the
10: * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11: * version 2 with the GNU Classpath Exception, which is available at
12: * https://www.gnu.org/software/classpath/license.html.
13: *
14: * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15: */
16:
17: package jakarta.resource.spi;
18:
19: import java.beans.PropertyDescriptor;
20:
21: /**
22: * This exception is thrown to indicate invalid configuration
23: * property settings.
24: *
25: * @version 0.2
26: * @author Ram Jeyaraman
27: */
28: public class InvalidPropertyException
29: extends jakarta.resource.ResourceException {
30:
31: /*
32: * Holder for invalid properties.
33: */
34: private PropertyDescriptor[] invalidProperties;
35:
36: /**
37: * Create a InvalidPropertyException.
38: */
39: public InvalidPropertyException() {
40:         super();
41: }
42:
43: /**
44: * Create a InvalidPropertyException.
45: *
46: * @param message a description of the exception
47: */
48: public InvalidPropertyException(String message) {
49:         super(message);
50: }
51:
52: /**
53: * Constructs a new throwable with the specified cause.
54: *
55: * @param cause a chained exception of type <code>Throwable</code>.
56: */
57: public InvalidPropertyException(Throwable cause) {
58:         super(cause);
59: }
60:
61: /**
62: * Constructs a new throwable with the specified detail message and cause.
63: *
64: * @param message the detail message.
65: *
66: * @param cause a chained exception of type <code>Throwable</code>.
67: */
68: public InvalidPropertyException(String message, Throwable cause) {
69:         super(message, cause);
70: }
71:
72: /**
73: * Constructs a new throwable with the specified detail message and
74: * an error code.
75: *
76: * @param message a description of the exception.
77: * @param errorCode a string specifying the vendor specific error code.
78: */
79: public InvalidPropertyException(String message, String errorCode) {
80:         super(message, errorCode);
81: }
82:
83: /**
84: * Set a list of invalid properties.
85: * @param invalidProperties set of invalid property descriptors
86: */
87: public void setInvalidPropertyDescriptors(
88: PropertyDescriptor[] invalidProperties) {
89:         this.invalidProperties = invalidProperties;
90: }
91:
92: /**
93: * Get the list of invalid properties.
94: * @return property descriptors
95: */
96: public PropertyDescriptor[] getInvalidPropertyDescriptors() {
97: return this.invalidProperties;
98: }
99: }