@Typed public abstract class ExceptionUtils extends Object
Modifier and Type | Method and Description |
---|---|
static RuntimeException |
ambiguousLanguageDefinition(Class<? extends Language> id,
Language foundLanguage,
Language newLanguage)
Creates an exception if there are multiple language types
|
static RuntimeException |
noScriptingLanguageAvailable()
Creates an exception if there is no script-language type available
|
static RuntimeException |
noScriptingLanguageAvailableFor(Class<? extends Language> languageType)
Creates an exception if the type of the script-language isn't known
|
static RuntimeException |
overrideBuilderState(String newValueHint)
Creates an exception if e.g.
|
static RuntimeException |
unknownScriptingLanguage(String name)
Creates an exception if the script-language isn't known
|
public static RuntimeException unknownScriptingLanguage(String name)
name
- unknown namepublic static RuntimeException noScriptingLanguageAvailable()
public static RuntimeException noScriptingLanguageAvailableFor(Class<? extends Language> languageType)
languageType
- unknown language typepublic static RuntimeException ambiguousLanguageDefinition(Class<? extends Language> id, Language foundLanguage, Language newLanguage)
id
- language idfoundLanguage
- registered languagenewLanguage
- found languagepublic static RuntimeException overrideBuilderState(String newValueHint)
newValueHint
- name of the argumentCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.