essential-actions
Clone or download
Modified Files
--- 'a/twitch/twitch-chat-connect/src/main/java/connect/TwitchChatConnectAction.java'
+++ b/twitch/twitch-chat-connect/src/main/java/connect/TwitchChatConnectAction.java
@@ -34,6 +34,12 @@ public class TwitchChatConnectAction ext
}
@Override
+ public void onActionClicked() throws MinorException
+ {
+
+ }
+
+ @Override
public void initProperties() throws MinorException
{
Property twitchNicknameProp = new Property(NICKNAME_KEY, Type.STRING);
@@ -88,14 +94,4 @@ public class TwitchChatConnectAction ext
}
});
}
-
- @Override
- public void onActionClicked() throws Exception
- {
- }
-
- @Override
- public void onShutDown() throws Exception
- {
- }
}
--- 'a/twitch/twitch-chat-connect/src/main/java/connect/chat/TwitchChatCredentials.java'
+++ b/twitch/twitch-chat-connect/src/main/java/connect/chat/TwitchChatCredentials.java
@@ -1,5 +1,6 @@
package connect.chat;
+import com.stream_pi.util.exception.MinorException;
import com.stream_pi.util.exception.StreamPiException;
public final class TwitchChatCredentials
@@ -22,7 +23,8 @@ public final class TwitchChatCredentials
String nickname;
String oauthToken;
- public void ensureCredentialsInitialized() throws Exception {
+ public void ensureCredentialsInitialized() throws MinorException
+ {
final String twitchNickname = nickname;
boolean isNicknameInitialized = twitchNickname != null && !twitchNickname.isEmpty();
@@ -30,8 +32,8 @@ public final class TwitchChatCredentials
boolean isTokenInitialized = twitchChatOauthToken != null && !twitchChatOauthToken.isEmpty();
if (!isNicknameInitialized && !isTokenInitialized) {
- throw new StreamPiException(
- "Twitch Chat config uninitialized.",
+ throw new MinorException(
+ "Twitch Chat config uninitialized\n"+
"Please check that the Twitch Chat plugin configuration is correct.");
}
}