-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made tabs consistent, added .editorconfig
- Loading branch information
1 parent
2cc200a
commit 53562ab
Showing
13 changed files
with
110 additions
and
89 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
charset = utf-8 | ||
|
||
[*.java] | ||
indent_style = tab | ||
max_line_length = 180 | ||
indent_size = 4 | ||
ij_continuation_indent_size = 8 | ||
trim_trailing_whitespace = true | ||
|
||
[*.xml] | ||
indent_style = space | ||
indent_size = 4 | ||
|
26 changes: 13 additions & 13 deletions
26
src/main/java/me/retrodaredevil/io/modbus/ExceptionCode.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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
package me.retrodaredevil.io.modbus; | ||
|
||
public final class ExceptionCode { | ||
private ExceptionCode() { throw new UnsupportedOperationException(); } | ||
// http://www.simplymodbus.ca/exceptions.htm | ||
private ExceptionCode() { throw new UnsupportedOperationException(); } | ||
// http://www.simplymodbus.ca/exceptions.htm | ||
|
||
public static int ILLEGAL_FUNCTION = 1; | ||
public static int ILLEGAL_DATA_ACCESS = 2; | ||
public static int ILLEGAL_DATA_VALUE = 3; | ||
public static int SLAVE_DEVICE_FAILURE = 4; | ||
public static int ACKNOWLEDGE = 5; | ||
public static int SLAVE_DEVICE_BUSY = 6; | ||
public static int NEGATIVE_ACKNOWLEDGE = 7; | ||
public static int MEMORY_PARITY_ERROR = 8; | ||
// skip 9 for some reason | ||
public static int GATEWAY_PATH_UNAVAILABLE = 10; | ||
public static int GATEWAY_TARGET_DEVICE_FAILED_TO_RESPOND = 11; | ||
public static int ILLEGAL_FUNCTION = 1; | ||
public static int ILLEGAL_DATA_ACCESS = 2; | ||
public static int ILLEGAL_DATA_VALUE = 3; | ||
public static int SLAVE_DEVICE_FAILURE = 4; | ||
public static int ACKNOWLEDGE = 5; | ||
public static int SLAVE_DEVICE_BUSY = 6; | ||
public static int NEGATIVE_ACKNOWLEDGE = 7; | ||
public static int MEMORY_PARITY_ERROR = 8; | ||
// skip 9 for some reason | ||
public static int GATEWAY_PATH_UNAVAILABLE = 10; | ||
public static int GATEWAY_TARGET_DEVICE_FAILED_TO_RESPOND = 11; | ||
} |
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
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
28 changes: 14 additions & 14 deletions
28
src/main/java/me/retrodaredevil/io/modbus/handling/WriteRegistersException.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 |
---|---|---|
@@ -1,22 +1,22 @@ | ||
package me.retrodaredevil.io.modbus.handling; | ||
|
||
public class WriteRegistersException extends WriteException { | ||
public WriteRegistersException() { | ||
} | ||
public WriteRegistersException() { | ||
} | ||
|
||
public WriteRegistersException(String message) { | ||
super(message); | ||
} | ||
public WriteRegistersException(String message) { | ||
super(message); | ||
} | ||
|
||
public WriteRegistersException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
public WriteRegistersException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
public WriteRegistersException(Throwable cause) { | ||
super(cause); | ||
} | ||
public WriteRegistersException(Throwable cause) { | ||
super(cause); | ||
} | ||
|
||
public WriteRegistersException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { | ||
super(message, cause, enableSuppression, writableStackTrace); | ||
} | ||
public WriteRegistersException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { | ||
super(message, cause, enableSuppression, writableStackTrace); | ||
} | ||
} |
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
28 changes: 14 additions & 14 deletions
28
src/main/java/me/retrodaredevil/io/modbus/parsing/MessageParseException.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 |
---|---|---|
@@ -1,22 +1,22 @@ | ||
package me.retrodaredevil.io.modbus.parsing; | ||
|
||
public class MessageParseException extends Exception { | ||
public MessageParseException() { | ||
} | ||
public MessageParseException() { | ||
} | ||
|
||
public MessageParseException(String message) { | ||
super(message); | ||
} | ||
public MessageParseException(String message) { | ||
super(message); | ||
} | ||
|
||
public MessageParseException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
public MessageParseException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
public MessageParseException(Throwable cause) { | ||
super(cause); | ||
} | ||
public MessageParseException(Throwable cause) { | ||
super(cause); | ||
} | ||
|
||
public MessageParseException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { | ||
super(message, cause, enableSuppression, writableStackTrace); | ||
} | ||
public MessageParseException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { | ||
super(message, cause, enableSuppression, writableStackTrace); | ||
} | ||
} |
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
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