public class ExceptionMessagePattern extends Object
| Constructor and Description |
|---|
ExceptionMessagePattern(ErrorType errorType,
String regex,
List<String> groupNames) |
| Modifier and Type | Method and Description |
|---|---|
OperationException |
getOperationException(Exception e)
Tries to convert an exception to an
OperationException. |
public ExceptionMessagePattern(ErrorType errorType, String regex, List<String> groupNames)
public OperationException getOperationException(Exception e)
OperationException.e - the exception to parseOperationException if the pattern matches
the message of e, or null otherwise.Copyright © 2015–2016 Hobrasoft s.r.o.. All rights reserved.