-
- All Implemented Interfaces:
-
com.bugsnag.android.JsonStream.Streamable
public final class Stackframe implements JsonStream.Streamable
Represents a single stackframe from a Throwable
-
-
Field Summary
Fields Modifier and Type Field Description private Stringmethodprivate Stringfileprivate NumberlineNumberprivate BooleaninProjectprivate Map<String, String>codeprivate NumbercolumnNumberprivate LongframeAddressprivate LongsymbolAddressprivate LongloadAddressprivate StringcodeIdentifierprivate BooleanisPCprivate ErrorTypetype
-
Constructor Summary
Constructors Constructor Description Stackframe(String method, String file, Number lineNumber, Boolean inProject, Map<String, String> code, Number columnNumber)Stackframe(String method, String file, Number lineNumber, Boolean inProject, Map<String, String> code)Stackframe(String method, String file, Number lineNumber, Boolean inProject)Stackframe(NativeStackframe nativeFrame)
-
Method Summary
Modifier and Type Method Description final StringgetMethod()The name of the method that was being executed final UnitsetMethod(String method)The name of the method that was being executed final StringgetFile()The location of the source file final UnitsetFile(String file)The location of the source file final NumbergetLineNumber()The line number within the source file this stackframe refers to final UnitsetLineNumber(Number lineNumber)The line number within the source file this stackframe refers to final BooleangetInProject()Whether the package is considered to be in your project for the purposes of grouping and readability on the Bugsnag dashboard. final UnitsetInProject(Boolean inProject)Whether the package is considered to be in your project for the purposes of grouping and readability on the Bugsnag dashboard. final Map<String, String>getCode()Lines of the code surrounding the frame, where the lineNumber is the key (React Native only) final UnitsetCode(Map<String, String> code)Lines of the code surrounding the frame, where the lineNumber is the key (React Native only) final NumbergetColumnNumber()The column number of the frame (React Native only) final UnitsetColumnNumber(Number columnNumber)The column number of the frame (React Native only) final LonggetFrameAddress()The address of the instruction where the event occurred. final UnitsetFrameAddress(Long frameAddress)The address of the instruction where the event occurred. final LonggetSymbolAddress()The address of the function where the event occurred. final UnitsetSymbolAddress(Long symbolAddress)The address of the function where the event occurred. final LonggetLoadAddress()The address of the library where the event occurred. final UnitsetLoadAddress(Long loadAddress)The address of the library where the event occurred. final StringgetCodeIdentifier()Identifies the exact build this frame originates from. final UnitsetCodeIdentifier(String codeIdentifier)Identifies the exact build this frame originates from. final BooleangetIsPC()Whether this frame identifies the program counter final UnitsetIsPC(Boolean isPC)Whether this frame identifies the program counter final ErrorTypegetType()The type of the error final UnitsetType(ErrorType type)The type of the error UnittoStream(JsonStream writer)-
-
Constructor Detail
-
Stackframe
Stackframe(String method, String file, Number lineNumber, Boolean inProject, Map<String, String> code, Number columnNumber)
-
Stackframe
Stackframe(String method, String file, Number lineNumber, Boolean inProject, Map<String, String> code)
-
Stackframe
Stackframe(NativeStackframe nativeFrame)
-
-
Method Detail
-
getLineNumber
final Number getLineNumber()
The line number within the source file this stackframe refers to
-
setLineNumber
final Unit setLineNumber(Number lineNumber)
The line number within the source file this stackframe refers to
-
getInProject
final Boolean getInProject()
Whether the package is considered to be in your project for the purposes of grouping and readability on the Bugsnag dashboard. Project package names can be set in Configuration.projectPackages
-
setInProject
final Unit setInProject(Boolean inProject)
Whether the package is considered to be in your project for the purposes of grouping and readability on the Bugsnag dashboard. Project package names can be set in Configuration.projectPackages
-
getCode
final Map<String, String> getCode()
Lines of the code surrounding the frame, where the lineNumber is the key (React Native only)
-
setCode
final Unit setCode(Map<String, String> code)
Lines of the code surrounding the frame, where the lineNumber is the key (React Native only)
-
getColumnNumber
final Number getColumnNumber()
The column number of the frame (React Native only)
-
setColumnNumber
final Unit setColumnNumber(Number columnNumber)
The column number of the frame (React Native only)
-
getFrameAddress
final Long getFrameAddress()
The address of the instruction where the event occurred.
-
setFrameAddress
final Unit setFrameAddress(Long frameAddress)
The address of the instruction where the event occurred.
-
getSymbolAddress
final Long getSymbolAddress()
The address of the function where the event occurred.
-
setSymbolAddress
final Unit setSymbolAddress(Long symbolAddress)
The address of the function where the event occurred.
-
getLoadAddress
final Long getLoadAddress()
The address of the library where the event occurred.
-
setLoadAddress
final Unit setLoadAddress(Long loadAddress)
The address of the library where the event occurred.
-
getCodeIdentifier
final String getCodeIdentifier()
Identifies the exact build this frame originates from.
-
setCodeIdentifier
final Unit setCodeIdentifier(String codeIdentifier)
Identifies the exact build this frame originates from.
-
toStream
Unit toStream(JsonStream writer)
-
-
-
-