Skip to content

Commit

Permalink
Improve code formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
gfinocchiaro committed Sep 21, 2017
1 parent 8996fd1 commit 448f9fe
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions src/main/java/cool/mqtt/hooks/HookException.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,16 @@ public class HookException extends Exception {

private static final long serialVersionUID = 79558317492415306L;

/** The error code */
private int code;

/**
* Constructs an {@code HookException} with the specified error code and
* detail message.
* Constructs an {@code HookException} with the specified error code and detail message.
*
* @param code
* the error code that can be used to distinguish the kind of
* problem. It must be a non negative integer, otherwise it will
* be replaced by {@code 0}
* @param message
* the detail message to be forwarded to the Client. It can be
* null. The message should be in simple ASCII, otherwise it
* might be altered in order to be sent to the client; multiline
* text is also not allowed
* @param code the error code that can be used to distinguish the kind of problem. It must be a
* non negative integer, otherwise it will be replaced by {@code 0}
* @param message the detail message to be forwarded to the Client. It can be null. The message
* should be in simple ASCII, otherwise it might be altered in order to be sent to the
* client; multiline text is also not allowed
*/
public HookException(int code, String message) {
super(message);
Expand All @@ -33,6 +27,8 @@ public HookException(int code, String message) {
}

/**
* Returns the error code.
*
* @return the error code
*/
public int getCode() {
Expand Down

0 comments on commit 448f9fe

Please sign in to comment.