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 business.exceptions.InvalidUserData.java

@ResponseStatus(value = HttpStatus.BAD_REQUEST) // 
public class InvalidUserData extends RuntimeException {
    private static final long serialVersionUID = -7706933733462824596L;

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

From source file business.exceptions.UpdateNotAllowed.java

@ResponseStatus(value = HttpStatus.FORBIDDEN, reason = "Update not allowed.")
public class UpdateNotAllowed extends RuntimeException {
    private static final long serialVersionUID = 4000154580392628894L;

    public UpdateNotAllowed() {
        super("Update not allowed in this status.");

From source file videoquotes.errorMessages.AccessExpired.java

/**
 *
 * @author yoga1290
 */
@ResponseStatus(value = HttpStatus.FAILED_DEPENDENCY, reason = "Access Expired")
public class AccessExpired extends RuntimeException {

From source file videoquotes.errorMessages.AuthorNotFound.java

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

From source file videoquotes.errorMessages.ChannelNotFound.java

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

From source file videoquotes.errorMessages.FacebookSharingFailed.java

/**
 *
 * @author yoga1290
 */
@ResponseStatus(value = HttpStatus.BAD_REQUEST, reason = "Posting to facebook failed")
public class FacebookSharingFailed extends RuntimeException {

From source file videoquotes.errorMessages.Unauthorized.java

/**
 *
 * @author yoga1290
 */
@ResponseStatus(value = HttpStatus.UNAUTHORIZED, reason = "Unauthorized")
public class Unauthorized extends RuntimeException {

From source file videoquotes.errorMessages.UpdateQuoteFailed.java

/**
 *
 * @author yoga1290
 */
@ResponseStatus(value = HttpStatus.BAD_REQUEST, reason = "Updating quote data failed")
public class UpdateQuoteFailed extends RuntimeException {

From source file videoquotes.errorMessages.UpdateUserFailed.java

/**
 *
 * @author yoga1290
 */
@ResponseStatus(value = HttpStatus.BAD_REQUEST, reason = "Updating user data failed")
public class UpdateUserFailed extends RuntimeException {

From source file videoquotes.errorMessages.UpdateVideoFailed.java

/**
 *
 * @author yoga1290
 */
@ResponseStatus(value = HttpStatus.BAD_REQUEST, reason = "Updating video data failed")
public class UpdateVideoFailed extends RuntimeException {