Package io.vertigo.commons.peg
Class PegNoMatchFoundException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- io.vertigo.commons.peg.PegNoMatchFoundException
-
- All Implemented Interfaces:
Serializable
public final class PegNoMatchFoundException extends Exception
Exception levée lorsque la règle n'est pas respectée.- Author:
- pchretien
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PegNoMatchFoundException(String s, int index, PegNoMatchFoundException rootException, String comment, Serializable... commentValues)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFullMessage()
int
getIndex()
String
getMessage()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
PegNoMatchFoundException
public PegNoMatchFoundException(String s, int index, PegNoMatchFoundException rootException, String comment, Serializable... commentValues)
Constructor.- Parameters:
s
- Texte parséindex
- Index dans le texterootException
- Causecomment
- Explication de l'erreur au format MessageFormat si il y a des valeurscommentValues
- Valeurs pour le MessageFormat de comment (il n'est pas conseillé de les fusionner au préalable dans comment)
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getFullMessage
public String getFullMessage()
- Returns:
- Retourne le message complet de l'erreur avec la pile inversée des causes.
-
getIndex
public int getIndex()
- Returns:
- Position du curseur au lancement de l'erreur
-
-