[Jiemamy-notify:1908] commit [3078] 例外クラスを追加

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 4月 3日 (金) 15:58:32 JST


Revision: 3078
          http://svn.sourceforge.jp/view?root=jiemamy&view=rev&rev=3078
Author:   j5ik2o
Date:     2009-04-03 15:58:31 +0900 (Fri, 03 Apr 2009)

Log Message:
-----------
例外クラスを追加

Added Paths:
-----------
    charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/
    charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/ClassNotFoundRuntimeException.java
    charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/IORuntimeException.java
    charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/IllegalAccessRuntimeException.java
    charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/InstantiationRuntimeException.java
    charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/InvocationTargetRuntimeException.java
    charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/NoSuchConstructorRuntimeException.java
    charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/NoSuchFieldRuntimeException.java
    charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/NoSuchMethodRuntimeException.java
    charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/PropertyNotFoundRuntimeException.java
    charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/ResourceNotFoundRuntimeException.java


-------------- next part --------------
Added: charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/ClassNotFoundRuntimeException.java
===================================================================
--- charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/ClassNotFoundRuntimeException.java	                        (rev 0)
+++ charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/ClassNotFoundRuntimeException.java	2009-04-03 06:58:31 UTC (rev 3078)
@@ -0,0 +1,69 @@
+/*
+ * Copyright 2007-2009 Jiemamy Project and the Others.
+ *
+ * This file is part of Jiemamy.
+ *
+ * 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 org.jiemamy.composer.importer.exception;
+
+/**
+ * クラスが見つからないときにスローされる例外。
+ * 
+ * @author j5ik2o
+ * 
+ */
+ @ SuppressWarnings("serial")
+public class ClassNotFoundRuntimeException extends RuntimeException {
+	
+	private String className;
+	
+
+	/**
+	 * {@link ClassNotFoundRuntimeException}を作成する。
+	 * 
+	 * @param cause ケース
+	 */
+	public ClassNotFoundRuntimeException(ClassNotFoundException cause) {
+		this(null, cause);
+	}
+	
+	/**
+	 * {@link ClassNotFoundRuntimeException}を作成する。
+	 * 
+	 * @param className クラス名
+	 * @param cause ケース
+	 */
+	public ClassNotFoundRuntimeException(String className, ClassNotFoundException cause) {
+		super(cause);
+		setClassName(className);
+	}
+	
+	/**
+	 * クラス名を返する。
+	 * 
+	 * @return クラス名
+	 */
+	public String getClassName() {
+		return className;
+	}
+	
+	/**
+	 * クラス名を設定する。
+	 * 
+	 * @param className クラス名
+	 */
+	protected void setClassName(String className) {
+		this.className = className;
+	}
+}


Property changes on: charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/ClassNotFoundRuntimeException.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/IORuntimeException.java
===================================================================
--- charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/IORuntimeException.java	                        (rev 0)
+++ charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/IORuntimeException.java	2009-04-03 06:58:31 UTC (rev 3078)
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2007-2009 Jiemamy Project and the Others.
+ *
+ * This file is part of Jiemamy.
+ *
+ * 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 org.jiemamy.composer.importer.exception;
+
+import java.io.IOException;
+
+/**
+ * {@link IOException}をラップする例外。
+ * 
+ * @author j5ik2o
+ */
+ @ SuppressWarnings("serial")
+public class IORuntimeException extends RuntimeException {
+	
+	/**
+	 * {@link IORuntimeException}を作成する。
+	 * 
+	 * @param cause ケース
+	 */
+	public IORuntimeException(IOException cause) {
+		super(cause);
+	}
+}


Property changes on: charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/IORuntimeException.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/IllegalAccessRuntimeException.java
===================================================================
--- charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/IllegalAccessRuntimeException.java	                        (rev 0)
+++ charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/IllegalAccessRuntimeException.java	2009-04-03 06:58:31 UTC (rev 3078)
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2007-2009 Jiemamy Project and the Others.
+ *
+ * This file is part of Jiemamy.
+ *
+ * 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 org.jiemamy.composer.importer.exception;
+
+/**
+ * {@link IllegalAccessException}をラップする例外。
+ * 
+ * @author j5ik2o
+ * 
+ */
+ @ SuppressWarnings("serial")
+public class IllegalAccessRuntimeException extends RuntimeException {
+	
+	private Class<?> targetClass;
+	
+
+	/**
+	 * {@link IllegalAccessRuntimeException}を作成する。
+	 * 
+	 * @param targetClass ターゲットクラス
+	 * @param cause ケース
+	 */
+	public IllegalAccessRuntimeException(Class<?> targetClass, IllegalAccessException cause) {
+		super(targetClass.getName(), cause);
+		this.targetClass = targetClass;
+	}
+	
+	/**
+	 * ターゲットクラスを返する。
+	 * 
+	 * @return ターゲットクラス
+	 */
+	public Class<?> getTargetClass() {
+		return targetClass;
+	}
+}


Property changes on: charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/IllegalAccessRuntimeException.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/InstantiationRuntimeException.java
===================================================================
--- charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/InstantiationRuntimeException.java	                        (rev 0)
+++ charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/InstantiationRuntimeException.java	2009-04-03 06:58:31 UTC (rev 3078)
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2007-2009 Jiemamy Project and the Others.
+ *
+ * This file is part of Jiemamy.
+ *
+ * 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 org.jiemamy.composer.importer.exception;
+
+/**
+ * {@link InstantiationException}をラップする例外。
+ * 
+ * @author j5ik2o
+ * 
+ */
+ @ SuppressWarnings("serial")
+public class InstantiationRuntimeException extends RuntimeException {
+	
+	private Class<?> targetClass;
+	
+
+	/**
+	 * {@link InstantiationRuntimeException}を作成する。
+	 * 
+	 * @param targetClass ターゲットのクラス
+	 * @param cause ケース
+	 */
+	public InstantiationRuntimeException(Class<?> targetClass, InstantiationException cause) {
+		super(cause);
+		this.targetClass = targetClass;
+	}
+	
+	/**
+	 * ターゲットのクラスをする。
+	 * 
+	 * @return ターゲットのクラス
+	 */
+	public Class<?> getTargetClass() {
+		return targetClass;
+	}
+}


Property changes on: charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/InstantiationRuntimeException.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/InvocationTargetRuntimeException.java
===================================================================
--- charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/InvocationTargetRuntimeException.java	                        (rev 0)
+++ charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/InvocationTargetRuntimeException.java	2009-04-03 06:58:31 UTC (rev 3078)
@@ -0,0 +1,53 @@
+/*
+ * Copyright 2007-2009 Jiemamy Project and the Others.
+ *
+ * This file is part of Jiemamy.
+ *
+ * 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 org.jiemamy.composer.importer.exception;
+
+import java.lang.reflect.InvocationTargetException;
+
+/**
+ * {@link InvocationTargetException}をラップする例外です。
+ * 
+ * @author j5ik2o
+ * 
+ */
+ @ SuppressWarnings("serial")
+public class InvocationTargetRuntimeException extends RuntimeException {
+	
+	private Class<?> targetClass;
+	
+
+	/**
+	 * {@link InvocationTargetRuntimeException}を作成します。
+	 * 
+	 * @param targetClass ターゲットのクラス
+	 * @param cause ケース
+	 */
+	public InvocationTargetRuntimeException(Class<?> targetClass, InvocationTargetException cause) {
+		super(cause.getTargetException());
+		this.targetClass = targetClass;
+	}
+	
+	/**
+	 * ターゲットのクラスを返します。
+	 * 
+	 * @return ターゲットのクラス
+	 */
+	public Class<?> getTargetClass() {
+		return targetClass;
+	}
+}


Property changes on: charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/InvocationTargetRuntimeException.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/NoSuchConstructorRuntimeException.java
===================================================================
--- charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/NoSuchConstructorRuntimeException.java	                        (rev 0)
+++ charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/NoSuchConstructorRuntimeException.java	2009-04-03 06:58:31 UTC (rev 3078)
@@ -0,0 +1,65 @@
+/*
+ * Copyright 2007-2009 Jiemamy Project and the Others.
+ *
+ * This file is part of Jiemamy.
+ *
+ * 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 org.jiemamy.composer.importer.exception;
+
+import java.lang.reflect.Constructor;
+
+/**
+ * {@link Constructor}が見つからない場合にスローされる{@link NoSuchMethodException}をラップする例外。
+ * 
+ * @author j5ik2o
+ */
+ @ SuppressWarnings("serial")
+public class NoSuchConstructorRuntimeException extends RuntimeException {
+	
+	private Class<?> targetClass;
+	
+	private Class<?>[] argTypes;
+	
+
+	/**
+	 * {@link NoSuchConstructorRuntimeException}を作成する。
+	 * 
+	 * @param targetClass ターゲットのクラス
+	 * @param argTypes 引数の型の配列
+	 * @param cause ケース
+	 */
+	public NoSuchConstructorRuntimeException(Class<?> targetClass, Class<?>[] argTypes, NoSuchMethodException cause) {
+		super(cause);
+		this.targetClass = targetClass;
+		this.argTypes = argTypes;
+	}
+	
+	/**
+	 * 引数の型の配列を返します。
+	 * 
+	 * @return 引数の型の配列
+	 */
+	public Class<?>[] getArgTypes() {
+		return argTypes;
+	}
+	
+	/**
+	 * ターゲットのクラスを返します。
+	 * 
+	 * @return ターゲットのクラス
+	 */
+	public Class<?> getTargetClass() {
+		return targetClass;
+	}
+}


Property changes on: charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/NoSuchConstructorRuntimeException.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/NoSuchFieldRuntimeException.java
===================================================================
--- charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/NoSuchFieldRuntimeException.java	                        (rev 0)
+++ charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/NoSuchFieldRuntimeException.java	2009-04-03 06:58:31 UTC (rev 3078)
@@ -0,0 +1,63 @@
+/*
+ * Copyright 2007-2009 Jiemamy Project and the Others.
+ *
+ * This file is part of Jiemamy.
+ *
+ * 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 org.jiemamy.composer.importer.exception;
+
+/**
+ * {@link NoSuchFieldException}をラップする例外。
+ * 
+ * @author j5ik2o
+ */
+ @ SuppressWarnings("serial")
+public class NoSuchFieldRuntimeException extends RuntimeException {
+	
+	private Class<?> targetClass;
+	
+	private String fieldName;
+	
+
+	/**
+	 * {@link NoSuchFieldRuntimeException}を作成します。
+	 * 
+	 * @param targetClass ターゲットクラス
+	 * @param fieldName フィールド名
+	 * @param cause ケース
+	 */
+	public NoSuchFieldRuntimeException(Class<?> targetClass, String fieldName, NoSuchFieldException cause) {
+		super(cause);
+		this.targetClass = targetClass;
+		this.fieldName = fieldName;
+	}
+	
+	/**
+	 * フィールド名を返します。
+	 * 
+	 * @return フィールド名
+	 */
+	public String getFieldName() {
+		return fieldName;
+	}
+	
+	/**
+	 * ターゲットのクラスを返します。
+	 * 
+	 * @return ターゲットのクラス
+	 */
+	public Class<?> getTargetClass() {
+		return targetClass;
+	}
+}


Property changes on: charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/NoSuchFieldRuntimeException.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/NoSuchMethodRuntimeException.java
===================================================================
--- charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/NoSuchMethodRuntimeException.java	                        (rev 0)
+++ charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/NoSuchMethodRuntimeException.java	2009-04-03 06:58:31 UTC (rev 3078)
@@ -0,0 +1,77 @@
+/*
+ * Copyright 2007-2009 Jiemamy Project and the Others.
+ *
+ * This file is part of Jiemamy.
+ *
+ * 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 org.jiemamy.composer.importer.exception;
+
+/**
+ * {@link NoSuchMethodException}をラップする例外。
+ * 
+ * @author j5ik2o
+ */
+ @ SuppressWarnings("serial")
+public class NoSuchMethodRuntimeException extends RuntimeException {
+	
+	private Class<?> targetClass;
+	
+	private String methodName;
+	
+	private Class<?>[] argTypes;
+	
+
+	/**
+	 * {@link NoSuchMethodRuntimeException}を作成します。
+	 * 
+	 * @param targetClass クラス
+	 * @param methodName メソッド名
+	 * @param argTypes 引数
+	 * @param cause ケース
+	 */
+	public NoSuchMethodRuntimeException(Class<?> targetClass, String methodName, Class<?>[] argTypes,
+			NoSuchMethodException cause) {
+		super(cause);
+		this.targetClass = targetClass;
+		this.methodName = methodName;
+		this.argTypes = argTypes;
+	}
+	
+	/**
+	 * 引数の型の配列を返します。
+	 * 
+	 * @return 引数の型の配列
+	 */
+	public Class<?>[] getArgTypes() {
+		return argTypes;
+	}
+	
+	/**
+	 * メソッド名を返します。
+	 * 
+	 * @return メソッド名
+	 */
+	public String getMethodName() {
+		return methodName;
+	}
+	
+	/**
+	 * ターゲットのクラスを返します。
+	 * 
+	 * @return ターゲットのクラス
+	 */
+	public Class<?> getTargetClass() {
+		return targetClass;
+	}
+}


Property changes on: charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/NoSuchMethodRuntimeException.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/PropertyNotFoundRuntimeException.java
===================================================================
--- charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/PropertyNotFoundRuntimeException.java	                        (rev 0)
+++ charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/PropertyNotFoundRuntimeException.java	2009-04-03 06:58:31 UTC (rev 3078)
@@ -0,0 +1,74 @@
+/*
+ * Copyright 2007-2009 Jiemamy Project and the Others.
+ *
+ * This file is part of Jiemamy.
+ *
+ * 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 org.jiemamy.composer.importer.exception;
+
+/**
+ * プロパティが見つからない場合の例外。
+ * 
+ * @author j5ik2o
+ */
+ @ SuppressWarnings("serial")
+public class PropertyNotFoundRuntimeException extends RuntimeException {
+	
+	private String entityName;
+	
+	private String propertyName;
+	
+
+	/**
+	 * インスタンスを生成する。
+	 * 
+	 * @param entityName エンティティ名
+	 * @param propertyName プロパティ名
+	 */
+	public PropertyNotFoundRuntimeException(String entityName, String propertyName) {
+		this(entityName, propertyName, null);
+	}
+	
+	/**
+	 * インスタンスを生成する。
+	 * 
+	 * @param entityName エンティティ名 
+	 * @param propertyName プロパティ名
+	 * @param cause 原因となった例外
+	 */
+	public PropertyNotFoundRuntimeException(String entityName, String propertyName, Throwable cause) {
+		super(String.format("%s.%s is not found.", entityName, propertyName), cause);
+		this.entityName = entityName;
+		this.propertyName = propertyName;
+	}
+	
+	/**
+	 * エンティティ名を取得する。
+	 * 
+	 * @return エンティティ名
+	 */
+	public String getEntityName() {
+		return entityName;
+	}
+	
+	/**
+	 * プロパティ名を取得する。
+	 * 
+	 * @return プロパティ名
+	 */
+	public String getPropertyName() {
+		return propertyName;
+	}
+	
+}


Property changes on: charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/PropertyNotFoundRuntimeException.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/ResourceNotFoundRuntimeException.java
===================================================================
--- charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/ResourceNotFoundRuntimeException.java	                        (rev 0)
+++ charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/ResourceNotFoundRuntimeException.java	2009-04-03 06:58:31 UTC (rev 3078)
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2007-2009 Jiemamy Project and the Others.
+ *
+ * This file is part of Jiemamy.
+ *
+ * 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 org.jiemamy.composer.importer.exception;
+
+/**
+ * リソースが見つからなかったときにスローされる例外。
+ * 
+ * @author j5ik2o
+ */
+ @ SuppressWarnings("serial")
+public class ResourceNotFoundRuntimeException extends RuntimeException {
+	
+	private String path;
+	
+
+	/**
+	 * {@link ResourceNotFoundRuntimeException}を作成する。
+	 * 
+	 * @param path パス
+	 */
+	public ResourceNotFoundRuntimeException(String path) {
+		super(path);
+		this.path = path;
+	}
+	
+	/**
+	 * パスを返します。
+	 * 
+	 * @return パス
+	 */
+	public String getPath() {
+		return path;
+	}
+}


Property changes on: charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/exception/ResourceNotFoundRuntimeException.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain



Jiemamy-notify メーリングリストの案内
Back to archive index