Top Description Fields Constructors Methods
com.google.inject

public Class CreationException

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

Thrown when errors occur while creating a Injector. Includes a list of encountered errors. Clients should catch this exception, log it, and stop execution.
Author
[email protected] (Bob Lee)

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
CreationException(Collection<Message> messages)

Creates a CreationException containing messages.

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

CreationExceptionback to summary
public CreationException(Collection<Message> messages)

Creates a CreationException containing messages.

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