litesoft
Diff Revisions
949
vs
950
for /trunk/Java/core/Anywhere/src/org/litesoft/bo/AttributeIllegalArgumentException.java
|
@@ -1,25 +1,25 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.bo; |
3 |
|
- |
|
4 |
|
- |
public class AttributeIllegalArgumentException extends IllegalArgumentException { |
5 |
|
- |
private String mAttributeName, mValue; |
6 |
|
- |
|
7 |
|
- |
public AttributeIllegalArgumentException( String pAttributeName, Object pValue, String pMessage ) { |
8 |
|
- |
super( pMessage ); |
9 |
|
- |
mAttributeName = pAttributeName; |
10 |
|
- |
mValue = (pValue != null) ? pValue.toString() : null; |
11 |
|
- |
} |
12 |
|
- |
|
13 |
|
- |
public AttributeIllegalArgumentException( String pAttributeName, Object pValue, Throwable pCause ) { |
14 |
|
- |
this( pAttributeName, pValue, pCause.getMessage() ); |
15 |
|
- |
initCause( pCause ); |
16 |
|
- |
} |
17 |
|
- |
|
18 |
|
- |
public String getAttributeName() { |
19 |
|
- |
return mAttributeName; |
20 |
|
- |
} |
21 |
|
- |
|
22 |
|
- |
public String getValue() { |
23 |
|
- |
return mValue; |
24 |
|
- |
} |
25 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.bo; |
|
3 |
+ |
|
|
4 |
+ |
public class AttributeIllegalArgumentException extends IllegalArgumentException { |
|
5 |
+ |
private String mAttributeName, mValue; |
|
6 |
+ |
|
|
7 |
+ |
public AttributeIllegalArgumentException( String pAttributeName, Object pValue, String pMessage ) { |
|
8 |
+ |
super( pMessage ); |
|
9 |
+ |
mAttributeName = pAttributeName; |
|
10 |
+ |
mValue = (pValue != null) ? pValue.toString() : null; |
|
11 |
+ |
} |
|
12 |
+ |
|
|
13 |
+ |
public AttributeIllegalArgumentException( String pAttributeName, Object pValue, Throwable pCause ) { |
|
14 |
+ |
this( pAttributeName, pValue, pCause.getMessage() ); |
|
15 |
+ |
initCause( pCause ); |
|
16 |
+ |
} |
|
17 |
+ |
|
|
18 |
+ |
public String getAttributeName() { |
|
19 |
+ |
return mAttributeName; |
|
20 |
+ |
} |
|
21 |
+ |
|
|
22 |
+ |
public String getValue() { |
|
23 |
+ |
return mValue; |
|
24 |
+ |
} |
|
25 |
+ |
} |