2014-11-04 00:16:04 +01:00
|
|
|
package org.whispersystems.textsecure.push.exceptions;
|
2014-02-17 20:42:51 +01:00
|
|
|
|
2014-11-08 22:37:57 +01:00
|
|
|
import org.whispersystems.textsecure.api.crypto.UntrustedIdentityException;
|
2014-02-17 20:42:51 +01:00
|
|
|
import org.whispersystems.textsecure.push.UnregisteredUserException;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
public class EncapsulatedExceptions extends Throwable {
|
|
|
|
|
|
|
|
private final List<UntrustedIdentityException> untrustedIdentityExceptions;
|
|
|
|
private final List<UnregisteredUserException> unregisteredUserExceptions;
|
|
|
|
|
|
|
|
public EncapsulatedExceptions(List<UntrustedIdentityException> untrustedIdentities,
|
|
|
|
List<UnregisteredUserException> unregisteredUsers)
|
|
|
|
{
|
|
|
|
this.untrustedIdentityExceptions = untrustedIdentities;
|
|
|
|
this.unregisteredUserExceptions = unregisteredUsers;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<UntrustedIdentityException> getUntrustedIdentityExceptions() {
|
|
|
|
return untrustedIdentityExceptions;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<UnregisteredUserException> getUnregisteredUserExceptions() {
|
|
|
|
return unregisteredUserExceptions;
|
|
|
|
}
|
|
|
|
}
|