-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #114 from SUSE/master-support-partial-websocket-me…
…ssages Buffer partial websocket messages
- Loading branch information
Showing
5 changed files
with
159 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/main/java/com/suse/saltstack/netapi/exception/MessageTooBigException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.suse.saltstack.netapi.exception; | ||
|
||
/** | ||
* Exception to be thrown in case of a websocket message exceeding the configurable | ||
* maximum message length. | ||
*/ | ||
public class MessageTooBigException extends SaltStackException { | ||
|
||
/** | ||
* Constructor. | ||
* | ||
* @param maxMessageLength the maximum message length to be mentioned in the message | ||
*/ | ||
public MessageTooBigException(int maxMessageLength) { | ||
super("Message length exceeded the configured maximum (" + | ||
maxMessageLength + " characters)"); | ||
} | ||
} |
Oops, something went wrong.