Java Code Examples for org.whispersystems.signalservice.api.util.InvalidNumberException#getMessage()

The following examples show how to use org.whispersystems.signalservice.api.util.InvalidNumberException#getMessage() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DbusSignalImpl.java    From signal-cli with GNU General Public License v3.0 5 votes vote down vote up
@Override
public String getContactName(final String number) {
    try {
        return m.getContactName(number);
    } catch (InvalidNumberException e) {
        throw new Error.InvalidNumber(e.getMessage());
    }
}
 
Example 2
Source File: DbusSignalImpl.java    From signal-cli with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void setContactName(final String number, final String name) {
    try {
        m.setContactName(number, name);
    } catch (InvalidNumberException e) {
        throw new Error.InvalidNumber(e.getMessage());
    }
}
 
Example 3
Source File: DbusSignalImpl.java    From signal-cli with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void setContactBlocked(final String number, final boolean blocked) {
    try {
        m.setContactBlocked(number, blocked);
    } catch (InvalidNumberException e) {
        throw new Error.InvalidNumber(e.getMessage());
    }
}