public abstract class AbstractMainClass extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractMainClass.LoggedInitialisationException
Exception indicating that an error message has already been logged.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractMainClass(org.slf4j.Logger logger,
String usage)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected AbstractMainClass.LoggedInitialisationException |
barfError(String message)
Log an error and return a
AbstractMainClass.LoggedInitialisationException that
can be thrown. |
protected AbstractMainClass.LoggedInitialisationException |
barfUsage()
Log a usage message and return a
AbstractMainClass.LoggedInitialisationException that
can be thrown. |
protected org.slf4j.Logger |
getLogger()
Return our logger.
|
protected AbstractMainClass(org.slf4j.Logger logger, String usage) throws GrinderException
logger
- Logger to which output should be directed.usage
- Usage message.GrinderException
- If a problem occurred.protected final org.slf4j.Logger getLogger()
protected final AbstractMainClass.LoggedInitialisationException barfError(String message)
AbstractMainClass.LoggedInitialisationException
that
can be thrown.message
- The message to throw.protected final AbstractMainClass.LoggedInitialisationException barfUsage()
AbstractMainClass.LoggedInitialisationException
that
can be thrown.Copyright © 2000-2014. All Rights Reserved.