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 more

    Declaration

    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

    stackTrace

    The stack trace

    message

    Message to include

    type

    The error code

    line

    The line at which the error occurred.

    column

    The column at which the error occurred.

    file

    The file in which the error occurred.

  • init:

    Declaration

    Swift

    public init(stackTrace: String = "", message: String, type: Code)

    Parameters

    stackTrace

    The stack trace

    message

    Message to include

    type

    The 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?