Spring Framework NestedRuntimeException - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework NestedRuntimeException class.

This code example shows how to use the following methods:
 * @author Chris Beams 
 */ 
@SuppressWarnings("serial") 
class MyRuntimeException extends NestedRuntimeException { 
	public MyRuntimeException(String msg) { 
		super(msg); 
	} 
} 
7
CodeRank
This code example shows how to use the following methods:
@SuppressWarnings("serial") 
public class StompConversionException extends NestedRuntimeException { 
 
 
	public StompConversionException(String msg, Throwable cause) { 
		super(msg, cause); 
	} 
 
	public StompConversionException(String msg) { 
		super(msg); 
	} 
 
} 
7
CodeRank
This code example shows how to use the following methods:
	public HandshakeFailureException(String message) { 
		super(message); 
	} 
 
	public HandshakeFailureException(String message, Throwable cause) { 
		super(message, cause); 
	} 
 
} 
7
CodeRank
This code example shows how to use the following methods:getCause, getMessage
	 * if there is one. 
	 * @see javax.jms.JMSException#getLinkedException() 
	 */ 
	@Override 
	public String getMessage() {
		String message = super.getMessage();
		Throwable cause = getCause();
		if (cause instanceof JMSException) {
			Exception linkedEx = ((JMSException) cause).getLinkedException();
			if (linkedEx != null) {
				String linkedMessage = linkedEx.getMessage();
				String causeMessage = cause.getMessage();
				if (linkedMessage != null && (causeMessage == null || !causeMessage.contains(linkedMessage))) {
					message = message + "; nested exception is " + linkedEx;
				} 
			} 
		} 
		return message;
	} 
 
6
CodeRank
This code example shows how to use the following methods:
	 * Constructor for MailException. 
	 * @param msg the detail message 
	 * @param cause the root cause from the mail API in use 
	 */ 
	public MailException(String msg, Throwable cause) { 
		super(msg, cause); 
	} 
 
} 
7
CodeRank
This code example shows how to use the following methods:
	public SockJsException(String message, Throwable cause) { 
		this(message, null, cause); 
	} 
 
	public SockJsException(String message, String sessionId, Throwable cause) { 
		super(message, cause); 
		this.sessionId = sessionId; 
	} 
 
	public String getSockJsSessionId() { 
		return this.sessionId; 
	} 
 
} 
7
CodeRank
This code example shows how to use the following methods:
	/** 
	 * Constructor for TransactionException. 
	 * @param msg the detail message 
	 */ 
	public TransactionException(String msg) { 
		super(msg); 
	} 
 
	/** 
	 * Constructor for TransactionException. 
	 * @param msg the detail message 
	 * @param cause the root cause from the transaction API in use 
	 */ 
	public TransactionException(String msg, Throwable cause) { 
		super(msg, cause); 
	} 
 
} 
7
CodeRank
This code example shows how to use the following methods:
	/** 
	 * Construct a new conversion exception. 
	 * @param message the exception message 
	 */ 
	public ConversionException(String message) { 
		super(message); 
	} 
 
	/** 
	 * Construct a new conversion exception. 
	 * @param message the exception message 
	 * @param cause the cause 
	 */ 
	public ConversionException(String message, Throwable cause) { 
		super(message, cause); 
	} 
 
} 
7
CodeRank
This code example shows how to use the following methods:
		super(description); 
		this.failedMessage = message; 
	} 
 
	public MessagingException(Message<?> message, Throwable cause) { 
		super("", cause); 
		this.failedMessage = message; 
	} 
 
	public MessagingException(Message<?> message, String description, Throwable cause) { 
		super(description, cause); 
		this.failedMessage = message; 
	} 
 
 
	public Message<?> getFailedMessage() { 
		return this.failedMessage; 
	} 
 
} 
6
CodeRank
This code example shows how to use the following methods:
	/** 
	 * Construct an {@code XmlMappingException} with the specified detail message. 
	 * @param msg the detail message 
	 */ 
	public XmlMappingException(String msg) { 
		super(msg); 
	} 
 
	/** 
	 * Construct an {@code XmlMappingException} with the specified detail message 
	 * and nested exception. 
	 * @param msg the detail message 
	 * @param cause the nested exception 
	 */ 
	public XmlMappingException(String msg, Throwable cause) { 
		super(msg, cause); 
	} 
 
} 
7
CodeRank
This code example shows how to use the following methods:
	/** 
	 * Construct a {@code SerializationException} with the specified detail message. 
	 * @param message the detail message 
	 */ 
	public SerializationFailedException(String message) { 
		super(message); 
	} 
 
	/** 
	 * Construct a {@code SerializationException} with the specified detail message 
	 * and nested exception. 
	 * @param message the detail message 
	 * @param cause the nested exception 
	 */ 
	public SerializationFailedException(String message, Throwable cause) { 
		super(message, cause); 
	} 
 
} 
7
CodeRank
This code example shows how to use the following methods:
	/** 
	 * Constructor for DataAccessException. 
	 * @param msg the detail message 
	 */ 
	public DataAccessException(String msg) { 
		super(msg); 
	} 
 
	/** 
	 * Constructor for DataAccessException. 
	 * @param msg the detail message 
	 * @param cause the root cause (usually from using a underlying 
	 * data access API such as JDBC) 
	 */ 
	public DataAccessException(String msg, Throwable cause) { 
		super(msg, cause); 
	} 
 
} 
7
CodeRank
This code example shows how to use the following methods:
 
@SuppressWarnings("serial") 
public class RepeatException extends NestedRuntimeException { 
 
	public RepeatException(String msg) { 
		super(msg); 
	} 
 
	public RepeatException(String msg, Throwable t) { 
		super(msg, t); 
	} 
 
} 
6
CodeRank
This code example shows how to use the following methods:
     * specified message and no root cause. 
     * 
     * @param msg the detail message 
     */ 
    public RemoteAuthenticationException(String msg) { 
        super(msg); 
    } 
} 
6
CodeRank
This code example shows how to use the following methods:
public class NoListenerException extends NestedRuntimeException { 
 
	private static final long serialVersionUID = -5644042657316429223L; 
 
	public NoListenerException(String msg, Throwable cause) { 
		super(msg, cause); 
	} 
 
	public NoListenerException(String msg) { 
		super(msg); 
	} 
 
} 
6
CodeRank
This code example shows how to use the following methods:
	 *  
	 * @param msg 
	 * @param cause 
	 */ 
	public PoolException(String msg, Throwable cause) { 
		super(msg, cause); 
	} 
 
	/** 
	 * Constructs a new <code>PoolException</code> instance. 
	 *  
	 * @param msg 
	 */ 
	public PoolException(String msg) { 
		super(msg); 
	} 
} 
6
CodeRank
This code example shows how to use the following methods:
	 *  
	 * @param msg 
	 * @param cause 
	 */ 
	public SerializationException(String msg, Throwable cause) { 
		super(msg, cause); 
	} 
 
	/** 
	 * Constructs a new <code>SerializationException</code> instance. 
	 *  
	 * @param msg 
	 */ 
	public SerializationException(String msg) { 
		super(msg); 
	} 
} 
6
CodeRank
This code example shows how to use the following methods:
	 *  
	 * @param msg 
	 * @param cause 
	 */ 
	public ScriptingException(String msg, Throwable cause) { 
		super(msg, cause); 
	} 
 
	/** 
	 * Constructs a new <code>ScriptingException</code> instance. 
	 *  
	 * @param msg 
	 */ 
	public ScriptingException(String msg) { 
		super(msg); 
	} 
} 
6
CodeRank
This code example shows how to use the following methods:
    public ParallelException(String msg) { 
        super(msg); 
    } 
     
    public ParallelException(String msg, Throwable t) { 
        super(msg, t); 
    } 
 
} 
6
CodeRank
This code example shows how to use the following methods:
 * @since 6.5 
 */ 
public class ViewResolutionException extends NestedRuntimeException { 
 
	public ViewResolutionException(String viewName, Throwable cause) { 
		super("Error resolving viewName [" + viewName + ']', cause); 
	} 
 
	public ViewResolutionException(String viewName) { 
		this(viewName, null); 
	} 
 
} 
6
CodeRank
This code example shows how to use the following methods:
 */ 
public class FormDefinitionException extends NestedRuntimeException { 
 
	 
	public FormDefinitionException(String msg) { 
		super(msg); 
	} 
 
	public FormDefinitionException(String msg, Throwable ex) { 
		super(msg, ex); 
	} 
} 
6
CodeRank
This code example shows how to use the following methods:
     * Construct a <code>NestedRuntimeException</code> with the specified detail message. 
     * 
     * @param msg the detail message 
     */ 
    public NestedIllegalArgumentException(String msg) { 
        super(msg); 
    } 
 
    /** 
     * Construct a <code>NestedRuntimeException</code> with the specified detail message 
     * and nested exception. 
     * 
     * @param msg the detail message 
     * @param cause the nested exception 
     */ 
    public NestedIllegalArgumentException(String msg, Throwable cause) { 
        super(msg, cause); 
    } 
 
} 
6
CodeRank
This code example shows how to use the following methods:
 * @author Uri Boness 
 */ 
public class FelException extends NestedRuntimeException { 
 
    public FelException(String msg) { 
        super(msg); 
    } 
 
    public FelException(String msg, Throwable ex) { 
        super(msg, ex); 
    } 
 
} 
6
CodeRank
This code example shows how to use the following methods:
 * @author Uri Boness 
 */ 
public class ConditionException extends NestedRuntimeException { 
 
    public ConditionException(String msg) { 
        super(msg); 
    } 
 
    public ConditionException(String msg, Throwable ex) { 
        super(msg, ex); 
    } 
 
} 
6
CodeRank
This code example shows how to use the following methods:
 * @author Uri Boness 
 */ 
public class CelException extends NestedRuntimeException { 
 
    public CelException(String msg) { 
        super(msg); 
    } 
 
    public CelException(String msg, Throwable ex) { 
        super(msg, ex); 
    } 
 
} 
6
CodeRank
This code example shows how to use the following methods:
	 * Construct a <code>WorkflowException</code> with the specified detail message. 
	 * 
	 * @param msg the detail message 
	 */ 
	public WorkflowException(String msg) { 
		super(msg); 
	} 
 
	public WorkflowException(String msg, Throwable ex) { 
		super(msg, ex); 
	} 
} 
6
CodeRank
This code example shows how to use the following methods:
 * @author Alex Ruiz 
 */ 
public abstract class CacheException extends NestedRuntimeException { 
 
  public CacheException(String msg) { 
    super(msg); 
  } 
 
  public CacheException(String msg, Throwable cause) { 
    super(msg, cause); 
  } 
 
} 
6
CodeRank
This code example shows how to use the following methods:
 * @version $Revision$ $Date$ 
 */ 
public abstract class XmlRpcException extends NestedRuntimeException { 
 
  public XmlRpcException(String msg) { 
    super(msg); 
  } 
 
  public XmlRpcException(String msg, Throwable nestedException) { 
    super(msg, nestedException); 
  } 
 
  public abstract int getCode(); 
} 
6
CodeRank
This code example shows how to use the following methods:
	} 
 
	/** 
	 * Constructor for LuceneIndexingException. 
	 * @param msg message 
	 * @param ex root cause 
	 */ 
	public LuceneIndexingException(String msg,IOException ex) { 
		super(msg,ex); 
	} 
 
} 
6
CodeRank
This code example shows how to use the following methods:
   *  
   * @param detailMessage 
   *          the detail message 
   */ 
  public CachingException(String detailMessage) { 
    super(detailMessage); 
  } 
 
  /** 
   * Constructor. 
   *  
   * @param detailMessage 
   *          the detail message 
   * @param nested 
   *          the nested exception 
   */ 
  public CachingException(String detailMessage, Throwable nested) { 
    super(detailMessage, nested); 
  } 
 
6
CodeRank
See Code Examples for Spring Framework NestedRuntimeException Methods: