Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/node-core-library > InternalError

InternalError class

An Error subclass that should be thrown to report an unexpected state that may indicate a software defect. An application may handle this error by instructing the end user to report an issue to the application maintainers.

Signature:

export declare class InternalError extends Error 

Extends: Error

Remarks

Do not use this class unless you intend to solicit bug reports from end users.

Constructors

ConstructorModifiersDescription
(constructor)(message)Constructs a new instance of the InternalError class.

Properties

PropertyModifiersTypeDescription
breakInDebuggerstaticbooleanIf true, a JavScript debugger; statement will be invoked whenever the InternalError constructor is called.
unformattedMessagereadonlystringThe underlying error message, without the additional boilerplate for an InternalError.

Methods

MethodModifiersDescription
toString()