blob: 3da659f7021dd00acd18deb73e59c454e527d03d [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)';
}