Spec-Zone.ru › Sass

LegacyException

The exception type thrown by renderSync and passed as the error to render's callback.

Deprecated

This is only thrown by the legacy render and renderSync APIs. Use compile, compileString, compileAsync, and compileStringAsync instead.

Hierarchy

  • Error
    • LegacyException
  • Defined in js-api-doc/legacy/exception.d.ts:10
Index

Properties

column? file? formatted line? message name stack? status

Properties

Optional column

column?: number

The (1-based) column number within line at which the error occurred, if this exception is associated with a specific Sass file location.

  • Defined in js-api-doc/legacy/exception.d.ts:36

Optional file

file?: string

If this exception was caused by an error in a Sass file, this will represent the Sass file's location. It can be in one of three formats:

  • If the Sass file was loaded from disk, this is the path to that file.
  • If the Sass file was generated by an importer, this is its canonical URL.
  • If the Sass file was passed as data without a corresponding file, this is the special string "stdin".
  • Defined in js-api-doc/legacy/exception.d.ts:54

formatted

formatted: string

The error message. For Dart Sass, this is the same as the result of calling toString, which is itself the same as message but with the prefix "Error:".

  • Defined in js-api-doc/legacy/exception.d.ts:23

Optional line

line?: number

The (1-based) line number on which the error occurred, if this exception is associated with a specific Sass file location.

  • Defined in js-api-doc/legacy/exception.d.ts:29

message

message: string

The error message. For Dart Sass, when possible this includes a highlighted indication of where in the source file the error occurred as well as the Sass stack trace.

Overrides Error.message

  • Defined in js-api-doc/legacy/exception.d.ts:16

name

name: string

Inherited from Error.name

  • Defined in node_modules/typescript/lib/lib.es5.d.ts:1054

Optional stack

stack?: string

Inherited from Error.stack

  • Defined in node_modules/typescript/lib/lib.es5.d.ts:1056

status

status: number

Analogous to the exit code for an executable. 1 for an error caused by a Sass file, 3 for any other type of error.

  • Defined in js-api-doc/legacy/exception.d.ts:42
sass
  • Compile
    • AsyncCompiler
    • Compiler
    • CompileResult
    • compile
    • compileAsync
    • compileString
    • compileStringAsync
    • initAsyncCompiler
    • initCompiler
  • Options
    • Options
    • StringOptions
    • OutputStyle
    • StringOptionsWithImporter
    • StringOptionsWithoutImporter
    • Syntax
  • Logger
    • Logger
      • silent
    • Logger
    • SourceLocation
    • SourceSpan
    • LoggerWarnOptions
  • Importer
    • NodePackageImporter
    • FileImporter
    • Importer
    • ImporterResult
  • Custom Function
    • CalculationInterpolation
    • CalculationOperation
    • SassArgumentList
    • SassBoolean
    • SassCalculation
    • SassColor
    • SassFunction
    • SassList
    • SassMap
    • SassMixin
    • SassNumber
    • SassString
    • Value
    • CalculationOperator
    • CalculationValue
    • CustomFunction
    • ListSeparator
    • sassFalse
    • sassNull
    • sassTrue
  • Other
    • Exception
    • CanonicalizeContext
    • Deprecations
    • LegacyFileOptions
    • ChannelName
    • ChannelNameHsl
    • ChannelNameHwb
    • ChannelNameLab
    • ChannelNameLch
    • ChannelNameRgb
    • ChannelNameXyz
    • ColorSpaceHsl
    • ColorSpaceHwb
    • ColorSpaceLab
    • ColorSpaceLch
    • ColorSpaceRgb
    • ColorSpaceXyz
    • GamutMapMethod
    • HueInterpolationMethod
    • KnownColorSpace
    • PolarColorSpace
    • PromiseOr
    • RectangularColorSpace
    • info
  • Legacy
    • types
      • Boolean
      • Color
      • Error
      • List
      • Map
      • Null
      • Number
      • String
    • LegacyException
    • LegacyImporterThis
    • LegacyPluginThis
    • LegacyResult
    • LegacySharedOptions
    • LegacyStringOptions
    • LegacyAsyncFunction
    • LegacyAsyncFunctionDone
    • LegacyAsyncImporter
    • LegacyFunction
    • LegacyImporter
    • LegacyImporterResult
    • LegacyOptions
    • LegacySyncFunction
    • LegacySyncImporter
    • LegacyValue
    • FALSE
    • NULL
    • TRUE
    • render
    • renderSync
  • Messages
    • Version
    • Deprecation
    • DeprecationOrId
    • DeprecationStatus
    • deprecations

© 2006–2025 the Sass team, and numerous contributors
Licensed under the MIT License.
https://sass-lang.com/documentation/js-api/interfaces/LegacyException

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API