public class GroupsException extends Exception
| Modifier and Type | Class and Description |
|---|---|
static class |
GroupsException.Code
codes which represent the various SyncServiceException types.
|
static class |
GroupsException.DistributedServicesException |
static class |
GroupsException.GroupChangedException |
static class |
GroupsException.GroupConfigMismatchException |
static class |
GroupsException.GroupExistsException |
static class |
GroupsException.GroupNotFoundException |
static class |
GroupsException.MemberExistsException |
static class |
GroupsException.MemberNotFoundException |
| Constructor and Description |
|---|
GroupsException(GroupsException.Code code) |
| Modifier and Type | Method and Description |
|---|---|
GroupsException.Code |
code()
Read the error code for this exception
|
static GroupsException |
create(GroupsException.Code code)
All Groups services exceptions should be constructed via
this factory method.
|
static GroupsException |
create(GroupsException.Code code,
String group,
String instance)
All Groups services exceptions should be constructed via
this factory method.
|
String |
getGroupName()
Read the group name for this exception
|
String |
getInstanceId()
Read the instance id for this exception
|
String |
getMessage()
Get Error string for the exception
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic GroupsException(GroupsException.Code code)
public GroupsException.Code code()
public String getInstanceId()
public String getGroupName()
public String getMessage()
getMessage in class Throwablepublic static GroupsException create(GroupsException.Code code, String group, String instance)
code - The error code.group - group nameinstance - instance idpublic static GroupsException create(GroupsException.Code code)
code - The error code of your new exception.Copyright © 2014. All Rights Reserved.