Dart Documentationclean_sync.serverMongoException

MongoException class

class MongoException implements Exception {
  final Map mongoError;
  final String msg;
  const MongoException(this.mongoError, [this.msg]);
  String toString() =>
      msg == null ? 'MongoError: $mongoError' : '$msg MongoError: $mongoError';
}

Implements

Exception

Constructors

const MongoException(Map mongoError, [String msg]) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
const MongoException(this.mongoError, [this.msg]);

Properties

final Map mongoError #

final Map mongoError

final String msg #

final String msg

Methods

String toString() #

Returns a string representation of this object.

docs inherited from Object
String toString() =>
   msg == null ? 'MongoError: $mongoError' : '$msg MongoError: $mongoError';