Top Description Fields Constructors Methods
com.google.inject

public final Class ProvisionException

extends RuntimeException
Class Inheritance
Static Imports
com.google.common.base.Preconditions.checkArgument

Indicates that there was a runtime failure while providing an instance.
Authors
[email protected] (Kevin Bourrillion), [email protected] (Jesse Wilson)
Since
2.0

Field Summary

Modifier and TypeField and Description
private final ImmutableSet<Message>
private static final long

Constructor Summary

AccessConstructor and Description
public
ProvisionException(Iterable<Message> messages)

Creates a ProvisionException containing messages.

public
public

Method Summary

Modifier and TypeMethod and Description
public Collection<Message>
getErrorMessages()

Returns messages for the errors that caused this exception.

public String
getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Field Detail

messagesback to summary
private final ImmutableSet<Message> messages
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

ProvisionExceptionback to summary
public ProvisionException(Iterable<Message> messages)

Creates a ProvisionException containing messages.

ProvisionExceptionback to summary
public ProvisionException(String message, Throwable cause)
ProvisionExceptionback to summary
public ProvisionException(String message)

Method Detail

getErrorMessagesback to summary
public Collection<Message> getErrorMessages()

Returns messages for the errors that caused this exception.

getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Doc from java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Returns:String

the detail message string of this Throwable instance (which may be null).

Annotations
@Override