public class

CreationException

extends RuntimeException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.google.inject.CreationException

Class Overview

Thrown when errors occur while creating a Injector. Includes a list of encountered errors. Clients should catch this exception, log it, and stop execution.

Summary

Public Constructors
CreationException(Collection<Message> messages)
Creates a CreationException containing messages.
Public Methods
Collection<Message> getErrorMessages()
Returns messages for the errors that caused this exception.
String getMessage()
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public CreationException (Collection<Message> messages)

Creates a CreationException containing messages.

Public Methods

public Collection<Message> getErrorMessages ()

Returns messages for the errors that caused this exception.

public String getMessage ()

Since: API Level