Line data Source code
1 : // Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file 2 : // for details. All rights reserved. Use of this source code is governed by a 3 : // BSD-style license that can be found in the LICENSE file. 4 : 5 : /// An exception thrown when a test assertion fails. 6 : class TestFailure implements Exception { 7 : final String? message; 8 : 9 0 : TestFailure(this.message); 10 : 11 0 : @override 12 0 : String toString() => message.toString(); 13 : }