remove use of NRE

This commit is contained in:
Keith Donald
2008-04-21 22:43:56 +00:00
parent 3c8179e92e
commit e045a216e8
6 changed files with 11 additions and 20 deletions

View File

@@ -15,30 +15,28 @@
*/
package org.springframework.binding.convert;
import org.springframework.core.NestedRuntimeException;
/**
* Base class for exceptions thrown by the type conversion system.
*
* @author Keith Donald
*/
public class ConversionException extends NestedRuntimeException {
public class ConversionException extends RuntimeException {
/**
* The source type we tried to convert from
*/
private Class sourceClass;
/**
* The value we tried to convert. Transient because we cannot guarantee that the value is Serializable.
*/
private transient Object value;
/**
* The target type we tried to convert to.
*/
private Class targetClass;
/**
* The value we tried to convert. Transient because we cannot guarantee that the value is Serializable.
*/
private transient Object value;
/**
* Creates a new conversion exception.
* @param value the value we tried to convert

View File

@@ -15,14 +15,12 @@
*/
package org.springframework.binding.expression;
import org.springframework.core.NestedRuntimeException;
/**
* Base class for exceptions thrown during expression parsing.
*
* @author Keith Donald
*/
public class ParserException extends NestedRuntimeException {
public class ParserException extends RuntimeException {
/**
* The expression string that could not be parsed.

View File

@@ -15,14 +15,12 @@
*/
package org.springframework.binding.format;
import org.springframework.core.NestedRuntimeException;
/**
* Thrown when a formatted value is of the wrong form.
*
* @author Keith Donald
*/
public class InvalidFormatException extends NestedRuntimeException {
public class InvalidFormatException extends RuntimeException {
private String invalidValue;

View File

@@ -15,14 +15,13 @@
*/
package org.springframework.binding.method;
import org.springframework.core.NestedRuntimeException;
/**
* Thrown when a method key could not be resolved to an invokable java Method on a Class.
*
* @author Keith Donald
*/
public class InvalidMethodKeyException extends NestedRuntimeException {
public class InvalidMethodKeyException extends RuntimeException {
/**
* The method key that could not be resolved.

View File

@@ -17,7 +17,6 @@ package org.springframework.binding.method;
import java.lang.reflect.InvocationTargetException;
import org.springframework.core.NestedRuntimeException;
import org.springframework.core.style.StylerUtils;
/**
@@ -25,7 +24,7 @@ import org.springframework.core.style.StylerUtils;
*
* @author Keith Donald
*/
public class MethodInvocationException extends NestedRuntimeException {
public class MethodInvocationException extends RuntimeException {
/**
* The method signature. Transient because a MethodSignature is not Serializable.