FreError
public class FreError : Error
FreError:
-
The stack trace
Declaration
Swift
public var stackTrace: String -
Message to include
Declaration
Swift
public var message: String -
The error code
Declaration
Swift
public var type: Code -
The line at which the error occurred.
Declaration
Swift
public var line: Int -
The column at which the error occurred.
Declaration
Swift
public var column: Int -
The file in which the error occurred.
Declaration
Swift
public var file: String -
Error code. Matches values of FREResult
See moreDeclaration
Swift
public enum Code -
init:
Declaration
Swift
public init(stackTrace: String, message: String, type: Code, line: Int = #line, column: Int = #column, file: String = #file)Parameters
stackTraceThe stack trace
messageMessage to include
typeThe error code
lineThe line at which the error occurred.
columnThe column at which the error occurred.
fileThe file in which the error occurred.
-
init:
Declaration
Swift
public init(stackTrace: String = "", message: String, type: Code)Parameters
stackTraceThe stack trace
messageMessage to include
typeThe error code
-
getError: returns a FREObject representation of the FreError. This can be returned to AS3
Declaration
Swift
public func getError(_ file: String = #file, _ line: Int = #line, _ column: Int = #column) -> FREObject?
View on GitHub
Install in Dash
FreError Class Reference