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
See Code Examples for Spring Framework NestedRuntimeException Methods: