org.chorem.pollen.services.exceptions
Class FavoriteListImportException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.chorem.pollen.services.exceptions.FavoriteListImportException
All Implemented Interfaces:
Serializable

public class FavoriteListImportException
extends Exception

Exception during FavoriteListImport.execute(String) error. There is always a cause from librairies used for import.

Author:
fdesbois
See Also:
Serialized Form

Constructor Summary
FavoriteListImportException(String importName, String causeMessage, Throwable cause)
           
FavoriteListImportException(String importName, Throwable cause)
           
 
Method Summary
 String getCauseMessage()
           
 String getImportName()
           
 String getLocalizedMessage(Locale locale)
          Get the message depends on locale.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FavoriteListImportException

public FavoriteListImportException(String importName,
                                   String causeMessage,
                                   Throwable cause)

FavoriteListImportException

public FavoriteListImportException(String importName,
                                   Throwable cause)
Method Detail

getImportName

public String getImportName()
Returns:
the name of import (CSV, LDAP, ...)

getCauseMessage

public String getCauseMessage()
Returns:
the error message source from import execution.

getLocalizedMessage

public String getLocalizedMessage(Locale locale)
Get the message depends on locale.

Parameters:
locale - Locale to translate the message
Returns:
the localized message or default one if locale is null


Copyright © 2009-2012 CodeLutin. All Rights Reserved.