/FileExtraction/Java_unseen/Orange-OpenSource_fiware-cepheus/cepheus-cep/src/main/java/com/orange/cepheus/cep/exception/EventTypeNotFoundException.java
/*
 * Copyright (C) 2015 Orange
 *
 * This software is distributed under the terms and conditions of the 'GNU GENERAL PUBLIC LICENSE
 * Version 2' license which can be found in the file 'LICENSE.txt' in this package distribution or
 * at 'http://www.gnu.org/licenses/gpl-2.0-standalone.html'.
 */

package com.orange.cepheus.cep.exception;

/**
 * Created by pborscia on 04/06/2015.
 */
public class EventTypeNotFoundException extends Exception {


    private final String typeName;

    public EventTypeNotFoundException(String typeName) {
        super("");
        this.typeName = typeName;

    }

    @Override
    public String getMessage() {
        return "The EventType '" + this.typeName + "' is not present in CEP ";
    }

    public String getTypeName() {
        return typeName;
    }
}
