package net.germes.core.exceptions;

import net.germes.core.entities.constants.Quotes;

/**
 * Created by Almaz
 * Date: 17.10.2015
 */
public class QuoteException extends Exception {
    private Quotes quotes;

    public QuoteException(String message, Quotes quotes) {
        super(message);

        this.quotes = quotes;
    }

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

    @Override
    public String toString() {
        return
            quotes != null ?
           "UnknownQuoteException for: " + quotes + super.getMessage()
                    : super.getMessage();
    }
}
