Searched refs:getOnlyCause (Results 1 – 5 of 5) sorted by relevance
56 IllegalStateException.class, Messages.getOnlyCause(pe.getErrorMessages()).getClass()); in testConstructorRuntimeException()80 assertEquals(IOException.class, Messages.getOnlyCause(pe.getErrorMessages()).getClass()); in testConstructorCheckedException()111 IllegalStateException.class, Messages.getOnlyCause(pe.getErrorMessages()).getClass()); in testCustomProvidersRuntimeException()139 IllegalStateException.class, Messages.getOnlyCause(pe.getErrorMessages()).getClass()); in testProviderMethodRuntimeException()167 assertEquals(IOException.class, Messages.getOnlyCause(pe.getErrorMessages()).getClass()); in testProviderMethodCheckedException()
40 initCause(Messages.getOnlyCause(this.messages)); in CreationException()
42 initCause(Messages.getOnlyCause(this.messages)); in ProvisionException()
40 initCause(Messages.getOnlyCause(this.messages)); in ConfigurationException()
80 boolean displayCauses = getOnlyCause(errorMessages) == null; in formatMessages()367 public static Throwable getOnlyCause(Collection<Message> messages) { in getOnlyCause() method in Messages