1 package com.atlassian.messagequeue;
2
3 import com.atlassian.annotations.PublicApi;
4
5 import javax.annotation.Nullable;
6
7 /**
8 * Thrown on message runner invocation when a message with the given key cannot be found.
9 * @since 1.0
10 */
11 @PublicApi
12 public class MessageRunnerNotRegisteredException extends RuntimeException {
13 /**
14 * @param key message runner key
15 */
16 public MessageRunnerNotRegisteredException(@Nullable MessageRunnerKey key) {
17 super("No message runner found for key: " + key);
18 }
19 }