bugsnag · Schema

StackFramePayload

Represents a single frame in an exception's stack trace.

Properties

Name Type Description
file string The file path where the code is located.
lineNumber integer The line number in the file where the frame originates.
columnNumber integer The column number in the file.
method string The method or function name.
inProject boolean Whether this frame originates from the project's own code, as opposed to a library or framework.
code object A map of line numbers to source code lines surrounding the error location.
View JSON Schema on GitHub

JSON Schema

bugsnag-stackframepayload-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/StackFramePayload",
  "title": "StackFramePayload",
  "type": "object",
  "description": "Represents a single frame in an exception's stack trace.",
  "required": [
    "file",
    "lineNumber",
    "method"
  ],
  "properties": {
    "file": {
      "type": "string",
      "description": "The file path where the code is located."
    },
    "lineNumber": {
      "type": "integer",
      "description": "The line number in the file where the frame originates."
    },
    "columnNumber": {
      "type": "integer",
      "description": "The column number in the file."
    },
    "method": {
      "type": "string",
      "description": "The method or function name."
    },
    "inProject": {
      "type": "boolean",
      "description": "Whether this frame originates from the project's own code, as opposed to a library or framework."
    },
    "code": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "A map of line numbers to source code lines surrounding the error location."
    }
  }
}