com.fnc.connection.ShowErrorNotification.java Source code

Java tutorial

Introduction

Here is the source code for com.fnc.connection.ShowErrorNotification.java

Source

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.fnc.connection;

import com.vaadin.ui.Notification;

/**
 *
 * @author jetdario
 */
public class ShowErrorNotification {

    public static void error(String error, String className) {
        Notification.show(error + " \n Class: " + className, Notification.Type.ERROR_MESSAGE);
    }

    public static void warning(String warning) {
        Notification.show(warning, Notification.Type.ERROR_MESSAGE);
    }

    public static void tray(String tray) {
        Notification.show(tray, Notification.Type.ERROR_MESSAGE);
    }
}