All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.scalajs.npm.mongodb.MongoError.scala Maven / Gradle / Ivy

There is a newer version: 2.2.22-7
Show newest version
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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy