WarningHandler
public class FilterWarningHandler extends Object implements WarningHandler
StringPattern
s.Constructor | Description |
---|---|
FilterWarningHandler(StringPattern[] handlePatterns,
WarningHandler delegate) |
Popular values for the
handlePatterns parameter are
StringPattern.PATTERNS_ALL and StringPattern.PATTERNS_NONE . |
Modifier and Type | Method | Description |
---|---|---|
void |
handleWarning(String handle,
String message,
Location optionalLocation) |
May or may not choose to throw a
CompileException . |
public FilterWarningHandler(StringPattern[] handlePatterns, WarningHandler delegate)
handlePatterns
parameter are
StringPattern.PATTERNS_ALL
and StringPattern.PATTERNS_NONE
.public void handleWarning(String handle, String message, Location optionalLocation) throws CompileException
WarningHandler
CompileException
.handleWarning
in interface WarningHandler
handle
- A string describing the category of the warningCompileException
Copyright © 2001–2019. All rights reserved.