Skip to content

Commit 848a2b2

Browse files
committed
Merge pull request #1284 from garyrussell:SPR-15091
* pr/1284: Implement MessagingException.toString()
2 parents 9e0a087 + 80bc8fc commit 848a2b2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

spring-messaging/src/main/java/org/springframework/messaging/MessagingException.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2015 the original author or authors.
2+
* Copyright 2002-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -66,4 +66,10 @@ public Message<?> getFailedMessage() {
6666
return this.failedMessage;
6767
}
6868

69+
@Override
70+
public String toString() {
71+
return super.toString() + (this.failedMessage == null ? ""
72+
: (", failedMessage=" + this.failedMessage));
73+
}
74+
6975
}

0 commit comments

Comments
 (0)