2014-08-21 19:46:16 +02:00
|
|
|
package processing.app.helpers;
|
|
|
|
|
2014-08-21 20:23:53 +02:00
|
|
|
public abstract class UserNotifier {
|
2014-08-21 19:46:16 +02:00
|
|
|
|
2014-08-21 20:23:53 +02:00
|
|
|
public void showError(String title, String message, int exit_code) {
|
|
|
|
showError(title, message, null, exit_code);
|
|
|
|
}
|
2014-08-21 19:46:16 +02:00
|
|
|
|
2014-08-21 20:23:53 +02:00
|
|
|
public void showError(String title, String message, Throwable e) {
|
|
|
|
showError(title, message, e, 1);
|
|
|
|
}
|
2014-08-21 19:46:16 +02:00
|
|
|
|
2014-08-21 20:23:53 +02:00
|
|
|
public abstract void showError(String title, String message, Throwable e, int exit_code);
|
|
|
|
|
|
|
|
public abstract void showMessage(String title, String message);
|
|
|
|
|
|
|
|
public abstract void showWarning(String title, String message, Exception e);
|
2014-08-21 19:55:50 +02:00
|
|
|
|
2014-08-21 19:46:16 +02:00
|
|
|
}
|