io.scalajs.npm.mongodb.MongoError.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mongodb_sjs0.6_2.11 Show documentation
Show all versions of mongodb_sjs0.6_2.11 Show documentation
The official MongoDB driver for Node.js.
package io.scalajs.npm.mongodb
import io.scalajs.RawOptions
import scala.scalajs.js
import scala.scalajs.js.annotation.JSImport
/**
* Mongo Error
* @see {{{ http://mongodb.github.io/node-mongodb-native/2.1/api/MongoError.html }}}
* @author [email protected]
*/
@js.native
@JSImport("mongodb", "MongoError")
class MongoError(val message: String) extends js.Object
/**
* Mongo Error Singleton
* @author [email protected]
*/
@js.native
@JSImport("mongodb", "MongoError")
object MongoError extends js.Object {
/////////////////////////////////////////////////////////////////////////////////
// Properties
/////////////////////////////////////////////////////////////////////////////////
/**
* Error.stackTraceLimit
*/
def stackTraceLimit: Int = js.native
/////////////////////////////////////////////////////////////////////////////////
// Methods
/////////////////////////////////////////////////////////////////////////////////
/**
* @example Error.captureStackTrace(targetObject[, constructorOpt])
*/
def captureStackTrace(targetObject: js.Any): Unit = js.native
/**
* @example Error.captureStackTrace(targetObject[, constructorOpt])
*/
def captureStackTrace(targetObject: js.Any, constructorOpt: js.Any): Unit = js.native
/**
* Creates a new Mongo Error object
* @param options the error options
* @return the [[MongoError]] instance
*/
def create(options: RawOptions): MongoError = js.native
}