com.j256.simplemagic
Interface ContentTypeUtil.ErrorCallBack
- Enclosing class:
- ContentTypeUtil
public static interface ContentTypeUtil.ErrorCallBack
While we are parsing the magic configuration files, there are usually tons of badly formed lines and other
errors. This class defines the call-back which will be made whenever we discover an error.
error
void error(String line,
String details,
Exception e)
- An error was generated while processing the line.
- Parameters:
line
- Line where the error happened.details
- Specific information about the error.e
- Exception that was thrown trying to parse the line or null if none.
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.