# EmitWarningOptions

An abstract type for the options that may be passed to emitWarning().

Availability
0.8
0.8
9.2.0
Extends
Object

NOTE

This is an abstract type. Any object of this structure can be used where this type is used.

# Properties

# code

Availability
0.8
0.8
9.2.0
code :String

A unique identifier for the warning instance being emitted.


# ctor

Availability
0.8
0.8
9.2.0
ctor :Function

When warning is a String, ctor is an optional function used to limit the generated stack trace.

Default: `process.emitWarning`


# detail

Availability
0.8
0.8
9.2.0
detail :String

Additional text to include with the error.


# type

Availability
0.8
0.8
9.2.0
type :String

When warning is a String, type is the name to use for the type of warning being emitted.

Default: Warning