• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2020 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 package org.chromium.base.test.util;
6 
7 /**
8  * Exception indicating that a Criteria did not match expectations.
9  */
10 public class CriteriaNotSatisfiedException extends AssertionError {
11     /**
12      * @param msg The reason the criteria was not met.
13      */
CriteriaNotSatisfiedException(String msg)14     public CriteriaNotSatisfiedException(String msg) {
15         super(msg);
16     }
17 
18     /**
19      * @param cause The underlying exception that prevented the Criteria.
20      */
CriteriaNotSatisfiedException(Throwable cause)21     public CriteriaNotSatisfiedException(Throwable cause) {
22         super(cause);
23     }
24 }
25