This repository has been archived by the owner on Feb 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added exceptions, package refactoring.
- Loading branch information
ParkJeongHwan
committed
Sep 18, 2019
1 parent
bfc6a81
commit 864a7b3
Showing
7 changed files
with
100 additions
and
40 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
20 changes: 20 additions & 0 deletions
20
src/main/java/com/realtimetech/kson/exception/DeserializeException.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,20 @@ | ||
package com.realtimetech.kson.exception; | ||
|
||
public class DeserializeException extends Exception { | ||
private static final long serialVersionUID = -2041738655817004217L; | ||
|
||
private String message; | ||
|
||
public DeserializeException(String message) { | ||
this.message = message; | ||
} | ||
|
||
public String getMessage() { | ||
return message; | ||
} | ||
|
||
@Override | ||
public String getLocalizedMessage() { | ||
return message; | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/com/realtimetech/kson/exception/SerializeException.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,20 @@ | ||
package com.realtimetech.kson.exception; | ||
|
||
public class SerializeException extends Exception{ | ||
private static final long serialVersionUID = -8508412598488843333L; | ||
|
||
private String message; | ||
|
||
public SerializeException(String message) { | ||
this.message = message; | ||
} | ||
|
||
public String getMessage() { | ||
return message; | ||
} | ||
|
||
@Override | ||
public String getLocalizedMessage() { | ||
return message; | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
.../com/realtimetech/kson/pool/KsonPool.java → ...realtimetech/kson/util/pool/KsonPool.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,4 +1,4 @@ | ||
package com.realtimetech.kson.pool; | ||
package com.realtimetech.kson.util.pool; | ||
|
||
import java.util.HashMap; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...om/realtimetech/kson/stack/FastStack.java → ...altimetech/kson/util/stack/FastStack.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
2 changes: 1 addition & 1 deletion
2
...realtimetech/kson/string/StringMaker.java → ...imetech/kson/util/string/StringMaker.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