From: rnayabed Date: Tue, 13 Apr 2021 01:01:29 +0530 Subject: Added ActionNotFoundException, ClientNotFoundException, ProfileNotFoundException exceptions and a new constructor for Alert, to provide alerts with just context text and no Heading --- Added ActionNotFoundException, ClientNotFoundException, ProfileNotFoundException exceptions and a new constructor for Alert, to provide alerts with just context text and no Heading --- --- 'a/src/main/java/com/stream_pi/util/alert/StreamPiAlert.java' +++ b/src/main/java/com/stream_pi/util/alert/StreamPiAlert.java @@ -80,6 +80,12 @@ public class StreamPiAlert private StreamPiAlertListener streamPiAlertListener = null; + + public StreamPiAlert(String contextText) + { + this("Alert", contextText); + } + /** * Public constructor to make an alert with just title, pre-made content pane (mainly for forms, complex dialogs) * @param title Heading of the Alert --- /dev/null +++ b/src/main/java/com/stream_pi/util/exception/ActionNotFoundException.java @@ -0,0 +1,9 @@ +package com.stream_pi.util.exception; + +public class ActionNotFoundException extends MinorException +{ + public ActionNotFoundException(String message) + { + super(message); + } +} --- /dev/null +++ b/src/main/java/com/stream_pi/util/exception/ClientNotFoundException.java @@ -0,0 +1,9 @@ +package com.stream_pi.util.exception; + +public class ClientNotFoundException extends MinorException +{ + public ClientNotFoundException(String message) + { + super(message); + } +} --- /dev/null +++ b/src/main/java/com/stream_pi/util/exception/ProfileNotFoundException.java @@ -0,0 +1,9 @@ +package com.stream_pi.util.exception; + +public class ProfileNotFoundException extends MinorException +{ + public ProfileNotFoundException(String message) + { + super(message); + } +}