A type of GeneratorException which is thrown when an unsupported language lifecycle generation is attempted.
To run this example, clone Jervis and execute ./gradlew console to bring up a Groovy Console with the classpath set up.
import net.gleske.jervis.exceptions.UnsupportedToolException throw new UnsupportedToolException('derpy')
Constructor and description |
---|
UnsupportedToolException
(String message) Throw an exception when an unsupported tool generation is attempted. |
Methods inherited from class | Name |
---|---|
class Exception |
printStackTrace, printStackTrace, printStackTrace, fillInStackTrace, getCause, initCause, toString, getMessage, getLocalizedMessage, getStackTrace, setStackTrace, addSuppressed, getSuppressed, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
Throw an exception when an unsupported tool generation is attempted. It would be most userfriendly to tell the user where in the YAML file they went wrong by passing in message the value of something like jdk: derpy which would tell the user they're trying to generate the 'derpy' tool when the jdk section doesn't support 'derpy'.
message
- A simple message that will be prepended with 'ERROR: Unsupported language in yaml -> ' + message as well as provide a link to a helpful wiki page, WikiPages.SUPPORTED_TOOLS.Jervis API documentation.