com.j256.simplemagic
Interface ContentInfoUtil.ErrorCallBack

Enclosing class:
ContentInfoUtil

public static interface ContentInfoUtil.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.


Method Summary
 void error(String line, String details, Exception e)
          An error was generated while processing the line.
 

Method Detail

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.