blob: 59f3e4e6647e3fa1bd5ba1f47e020039cd0eeaaa [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// This is thrown when the plugin reports an error.
class CameraException implements Exception {
/// Creates a new camera exception with the given error code and description.
CameraException(this.code, this.description);
/// Error code.
// TODO(bparrishMines): Document possible error codes.
// https://github.com/flutter/flutter/issues/69298
String code;
/// Textual description of the error.
String? description;
@override
String toString() => 'CameraException($code, $description)';
}