Created
July 30, 2010 08:23
-
-
Save frsyuki/500142 to your computer and use it in GitHub Desktop.
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
public class MembershipError extends Exception { | |
public MembershipError(String message) { | |
super(message); | |
} | |
public static class JoinRequired extends MembershipError { | |
public JoinRequired(String message) { | |
super(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
public class StorageError extends Exception { | |
public StorageError(String message) { | |
super(message); | |
} | |
public static class NotFound extends StorageError { | |
public NotFound(String message) { | |
super(message); | |
} | |
public static class UndefinedDataFamily extends NotFound { | |
public UndefinedDataFamily(String message) { | |
super(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
public class User { | |
public static void main(String[] args) throws Exception { | |
throw new StorageError.NotFound.UndefinedDataFamily("specified data family is not undefined."); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment