   # @return [Object] the error object for base
   forBase: ->
     @forAttribute('base')
+
+  # Converts the errors object to an array of errors
+  #
+  # @return [Array] the errors object converted to an array of errors
+  toArray: ->
+    output = []
+    for attribute, errors of @__errors
+      output.push errors...
+
+    output
+
+  # Convert the errors object to a collection of errors
+  #
+  # @return [Collection] the errors object converted to a collection of errors
+  toCollection: ->
+    ActiveResource::Collection.build(@toArray())

  reset: ->
    @__errors = {}

  # Adds an error with code and message to the error object for an attribute
  #
  # @param [String] attribute the attribute the error applies to

  # @return [Object] the error object for the attribute
  forAttribute: (attribute) ->
    ActiveResource::Collection.build(@__errors[attribute]).inject {}, (out, error) ->
      out[error.code] = error.message
      out

  # Returns the error object for base
