long sendMessage(
String message, List<String> attachments, String recipient
- ) throws Error.AttachmentInvalid, Error.Failure, Error.InvalidNumber;
+ ) throws Error.AttachmentInvalid, Error.Failure, Error.InvalidNumber, Error.UntrustedIdentity;
long sendMessage(
String message, List<String> attachments, List<String> recipients
- ) throws Error.AttachmentInvalid, Error.Failure, Error.InvalidNumber, Error.UnregisteredUser, Error.UntrustedIdentity;
+ ) throws Error.AttachmentInvalid, Error.Failure, Error.InvalidNumber, Error.UntrustedIdentity;
long sendNoteToSelfMessage(
String message, List<String> attachments
- ) throws Error.AttachmentInvalid, Error.Failure, Error.UnregisteredUser, Error.UntrustedIdentity;
+ ) throws Error.AttachmentInvalid, Error.Failure;
- void sendEndSessionMessage(List<String> recipients) throws Error.Failure, Error.InvalidNumber, Error.UnregisteredUser, Error.UntrustedIdentity;
+ void sendEndSessionMessage(List<String> recipients) throws Error.Failure, Error.InvalidNumber, Error.UntrustedIdentity;
long sendGroupMessage(
String message, List<String> attachments, byte[] groupId
- ) throws Error.GroupNotFound, Error.Failure, Error.AttachmentInvalid, Error.UnregisteredUser, Error.UntrustedIdentity;
+ ) throws Error.GroupNotFound, Error.Failure, Error.AttachmentInvalid;
String getContactName(String number) throws Error.InvalidNumber;
byte[] updateGroup(
byte[] groupId, String name, List<String> members, String avatar
- ) throws Error.AttachmentInvalid, Error.Failure, Error.InvalidNumber, Error.GroupNotFound, Error.UnregisteredUser, Error.UntrustedIdentity;
+ ) throws Error.AttachmentInvalid, Error.Failure, Error.InvalidNumber, Error.GroupNotFound;
boolean isRegistered();
}
}
- class UnregisteredUser extends DBusExecutionException {
-
- public UnregisteredUser(final String message) {
- super(message);
- }
- }
-
class UntrustedIdentity extends DBusExecutionException {
public UntrustedIdentity(final String message) {