public static class CriterionFactory.InvalidCriterionException extends IllegalArgumentException
IllegalArgumentException
instances that are thrown when
dealing with malformed string representations of criteria.Constructor and Description |
---|
InvalidCriterionException(String criterion)
Instantiates a new
CriterionFactory.InvalidCriterionException as a result of
failing to parsing the given string. |
InvalidCriterionException(String criterion,
String details)
Instantiates a new
CriterionFactory.InvalidCriterionException as a result of
failing to parsing the given string. |
InvalidCriterionException(String criterion,
String details,
Throwable cause)
Instantiates a new
CriterionFactory.InvalidCriterionException as a result of
failing to parsing the given string. |
InvalidCriterionException(String criterion,
Throwable cause)
Instantiates a new
CriterionFactory.InvalidCriterionException as a result of
failing to parsing the given string. |
Modifier and Type | Method and Description |
---|---|
String |
getCriterion()
Returns the string which could not be parsed as a
Criterion ,
as a result of which this exception was thrown. |
String |
getDetailMessage()
Returns a detailed message explaining the reason for this
CriterionFactory.InvalidCriterionException , if available. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InvalidCriterionException(String criterion)
CriterionFactory.InvalidCriterionException
as a result of
failing to parsing the given string.criterion
- The malformed criterion that caused this exception.public InvalidCriterionException(String criterion, String details)
CriterionFactory.InvalidCriterionException
as a result of
failing to parsing the given string.criterion
- The malformed criterion that caused this exception.details
- A message detailing the reasons for this exception and/or
the circumstances under which was thrown.public InvalidCriterionException(String criterion, Throwable cause)
CriterionFactory.InvalidCriterionException
as a result of
failing to parsing the given string.criterion
- The malformed criterion that caused this exception.cause
- Another exception that is wrapped by this new exception,
because it is thrown in its stead.public InvalidCriterionException(String criterion, String details, Throwable cause)
CriterionFactory.InvalidCriterionException
as a result of
failing to parsing the given string.criterion
- The malformed criterion that caused this exception.details
- A message detailing the reasons for this exception and/or
the circumstances under which was thrown.cause
- Another exception that is wrapped by this new exception,
because it is thrown in its stead.public String getCriterion()
Criterion
,
as a result of which this exception was thrown.public String getDetailMessage()
CriterionFactory.InvalidCriterionException
, if available.null
otherwise.Copyright © 2021 RWS Group for and on behalf of its affiliates and subsidiaries. All rights reserved.