remove use of NRE
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user