///
/// RiveError.swift
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © Marc Rousavy @ Margelo
///

import NitroModules

/**
 * Represents an instance of `RiveError`, backed by a C++ struct.
 */
public typealias RiveError = margelo.nitro.rive.RiveError

public extension RiveError {
  private typealias bridge = margelo.nitro.rive.bridge.swift

  /**
   * Create a new instance of `RiveError`.
   */
  init(message: String, type: RiveErrorType) {
    self.init(std.string(message), type)
  }

  @inline(__always)
  var message: String {
    return String(self.__message)
  }
  
  @inline(__always)
  var type: RiveErrorType {
    return self.__type
  }
}
