Skip to content

Commit 5506926

Browse files
ayeshLKniveathika
andauthored
Update native/src/main/java/io/ballerina/stdlib/java.jms/listener/Service.java
Co-authored-by: Niveathika <[email protected]>
1 parent 6f7bd1c commit 5506926

File tree

1 file changed

+1
-1
lines changed
  • native/src/main/java/io/ballerina/stdlib/java.jms/listener

1 file changed

+1
-1
lines changed

native/src/main/java/io/ballerina/stdlib/java.jms/listener/Service.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ private static void validateOnMessageMethod(RemoteMethodType onMessageMethod) {
141141

142142
private static void validateOnErrorMethod(RemoteMethodType onErrorMethod) {
143143
if (onErrorMethod.getParameters().length != 1) {
144-
throw CommonUtils.createError(JMS_ERROR, "onError method must have exactly one parameter.");
144+
throw CommonUtils.createError(JMS_ERROR, "onError method must have exactly one parameter of type 'jms:Error'.");
145145
}
146146

147147
Parameter parameter = onErrorMethod.getParameters()[0];

0 commit comments

Comments
 (0)