All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.ddth.queue.utils.QueueException Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package com.github.ddth.queue.utils;

/**
 * Thrown to indicate that there has been an error with queue oeration.
 * 
 * @author Thanh Ba Nguyen 
 * @since 0.1.0
 */
public class QueueException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    public QueueException() {
    }

    public QueueException(String message) {
        super(message);
    }

    public QueueException(Throwable cause) {
        super(cause);
    }

    public QueueException(String message, Throwable cause) {
        super(message, cause);
    }

    public QueueException(String message, Throwable cause, boolean enableSuppression,
            boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    /*----------------------------------------------------------------------*/
    /**
     * Thrown to indicate that the queue message can not be serialized.
     * 
     * @author Thanh Nguyen 
     * @since 0.3.3
     */
    public static class CannotSerializeQueueMessage extends QueueException {
        private static final long serialVersionUID = 1L;

        public CannotSerializeQueueMessage() {
        }

        public CannotSerializeQueueMessage(String message) {
            super(message);
        }

        public CannotSerializeQueueMessage(Throwable cause) {
            super(cause);
        }

        public CannotSerializeQueueMessage(String message, Throwable cause) {
            super(message, cause);
        }

        public CannotSerializeQueueMessage(String message, Throwable cause,
                boolean enableSuppression, boolean writableStackTrace) {
            super(message, cause, enableSuppression, writableStackTrace);
        }
    }

    /**
     * Thrown to indicate that the queue message can not be deserialized.
     * 
     * @author Thanh Nguyen 
     * @since 0.3.3
     */
    public static class CannotDeserializeQueueMessage extends QueueException {
        private static final long serialVersionUID = 1L;

        public CannotDeserializeQueueMessage() {
        }

        public CannotDeserializeQueueMessage(String message) {
            super(message);
        }

        public CannotDeserializeQueueMessage(Throwable cause) {
            super(cause);
        }

        public CannotDeserializeQueueMessage(String message, Throwable cause) {
            super(message, cause);
        }

        public CannotDeserializeQueueMessage(String message, Throwable cause,
                boolean enableSuppression, boolean writableStackTrace) {
            super(message, cause, enableSuppression, writableStackTrace);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy