01: package com.uwyn.rife.cmf.dam.exceptions;
02:
03: public class OrdinalRestrictionCantBeNullException extends
04: ContentManagerException {
05: private static final long serialVersionUID = -7956803702851520790L;
06:
07: private Class mBeanClass = null;
08: private String mProperty = null;
09: private String mRestriction = null;
10:
11: public OrdinalRestrictionCantBeNullException(Class beanClass,
12: String property, String restriction) {
13: super (
14: "The property '"
15: + property
16: + "' of bean '"
17: + beanClass.getName()
18: + "' declares itself as being a restricted ordinal, but the value restriction property '"
19: + restriction + "' is null.");
20:
21: mBeanClass = beanClass;
22: mProperty = property;
23: mRestriction = restriction;
24: }
25:
26: public Class getBeanClass() {
27: return mBeanClass;
28: }
29:
30: public String getProperty() {
31: return mProperty;
32: }
33:
34: public String getRestriction() {
35: return mRestriction;
36: }
37: }
|