package org.whispersystems.textsecure.push.exceptions; import org.whispersystems.textsecure.api.crypto.UntrustedIdentityException; import org.whispersystems.textsecure.push.UnregisteredUserException; import java.util.List; public class EncapsulatedExceptions extends Throwable { private final List untrustedIdentityExceptions; private final List unregisteredUserExceptions; public EncapsulatedExceptions(List untrustedIdentities, List unregisteredUsers) { this.untrustedIdentityExceptions = untrustedIdentities; this.unregisteredUserExceptions = unregisteredUsers; } public List getUntrustedIdentityExceptions() { return untrustedIdentityExceptions; } public List getUnregisteredUserExceptions() { return unregisteredUserExceptions; } }