fr.paris.lutece.plugins.directory.utils
Class DirectoryErrorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by fr.paris.lutece.plugins.directory.utils.DirectoryErrorException
All Implemented Interfaces:
Serializable

public class DirectoryErrorException
extends Exception

DirectoryErrorException

See Also:
Serialized Form

Constructor Summary
DirectoryErrorException(String strTitleField)
          Creates a new DirectoryErrorException
DirectoryErrorException(String strTitleField, String strErrorMessage)
          Creates a new DirectoryErrorException
 
Method Summary
 String getErrorMessage()
          Gets the error Message
 String getTitleField()
           
 boolean isMandatoryError()
          return true if the error is a mandatory error
 void setErrorMessage(String errorMessage)
          set the error message
 void setMandatoryError(boolean mandatoryError)
          set true if the error is a mandatory error
 void setTitleField(String titleField)
          set the title of the field
 
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

DirectoryErrorException

public DirectoryErrorException(String strTitleField,
                               String strErrorMessage)
Creates a new DirectoryErrorException

Parameters:
strTitleField - The title of the filed that caused the error
strErrorMessage - The error message

DirectoryErrorException

public DirectoryErrorException(String strTitleField)
Creates a new DirectoryErrorException

Parameters:
strTitleField - The title of the filed that caused the error
Method Detail

isMandatoryError

public boolean isMandatoryError()
return true if the error is a mandatory error

Returns:
true if the error is a mandatory error

setMandatoryError

public void setMandatoryError(boolean mandatoryError)
set true if the error is a mandatory error

Parameters:
mandatoryError - true if the error is a mandatory error

getErrorMessage

public String getErrorMessage()
Gets the error Message

Returns:
the error Message

setErrorMessage

public void setErrorMessage(String errorMessage)
set the error message

Parameters:
errorMessage - the erroer message

getTitleField

public String getTitleField()
Returns:
the title of the field

setTitleField

public void setTitleField(String titleField)
set the title of the field

Parameters:
titleField - the title of the field


Copyright © 2013 Mairie de Paris. All Rights Reserved.