Example usage for java.lang RuntimeException subclass-usage

List of usage examples for java.lang RuntimeException subclass-usage

Introduction

In this page you can find the example usage for java.lang RuntimeException subclass-usage.

Usage

From source file videoquotes.errorMessages.UserNotFound.java

/**
 *
 * @author yoga1290
 */
@ResponseStatus(value = HttpStatus.NOT_FOUND, reason = "User not found")
public class UserNotFound extends RuntimeException {

From source file videoquotes.errorMessages.VideoIntervalIntersect.java

/**
 *
 * @author yoga1290
 */
@ResponseStatus(value = HttpStatus.CONFLICT, reason = "Interval Intersect")
public class VideoIntervalIntersect extends RuntimeException {

From source file business.exceptions.EmailError.java

@ResponseStatus(value = HttpStatus.INTERNAL_SERVER_ERROR, reason = "Email error.")
public class EmailError extends RuntimeException {

    private static final long serialVersionUID = -6519420956992848556L;

    public EmailError(String message) {

From source file cz.muni.fi.pa165.rest.exceptions.InvalidParameterException.java

@ResponseStatus(value = HttpStatus.NOT_ACCEPTABLE)
public class InvalidParameterException extends RuntimeException {

}

From source file cz.muni.fi.pa165.rest.exceptions.ResourceNotModifiedException.java

@ResponseStatus(value = HttpStatus.NOT_MODIFIED, reason = "The requested resource was not modified")
public class ResourceNotModifiedException extends RuntimeException {

}

From source file business.exceptions.EmptyInput.java

@ResponseStatus(value = HttpStatus.BAD_REQUEST) // 
public class EmptyInput extends RuntimeException {
    public EmptyInput() {
        super("Empty input field.");
    }

From source file business.exceptions.LabNotFound.java

@ResponseStatus(value = HttpStatus.NOT_FOUND) // 
public class LabNotFound extends RuntimeException {
    public LabNotFound() {
        super("Lab cannot be found.");
    }

From source file com.sra.biotech.submittool.persistence.client.InvalidRequestException.java

@SuppressWarnings("serial")
public class InvalidRequestException extends RuntimeException {
    private Errors errors;

    public InvalidRequestException(String message, Errors errors) {
        super(message);

From source file business.exceptions.EmailAddressInvalid.java

@ResponseStatus(value = HttpStatus.BAD_REQUEST, reason = "Email address invalid.")
public class EmailAddressInvalid extends RuntimeException {
    private static final long serialVersionUID = -2877015062907280457L;

    public EmailAddressInvalid(String email) {
        super("Email address invalid: " + email);

From source file business.exceptions.EmailAddressNotAvailable.java

@ResponseStatus(value = HttpStatus.BAD_REQUEST, reason = "Email address not available.")
public class EmailAddressNotAvailable extends RuntimeException {
    private static final long serialVersionUID = -2294620434526249799L;

    public EmailAddressNotAvailable(String message) {
        super(message);