text: //@ sourceMappingURL=error_response.map
  // Generated by CoffeeScript 1.6.1
  var ErrorResponse, Transaction, ValidationErrorsCollection;
  
  Transaction = require('./transaction').Transaction;
  
  ValidationErrorsCollection = require('./validation_errors_collection').ValidationErrorsCollection;
  
  ErrorResponse = (function() {
  
    function ErrorResponse(attributes) {
      var key, value;
      for (key in attributes) {
        value = attributes[key];
        this[key] = value;
      }
      this.success = false;
      this.errors = new ValidationErrorsCollection(attributes.errors);
      if (attributes.transaction) {
        this.transaction = new Transaction(attributes.transaction);
      }
    }
  
    return ErrorResponse;
  
  })();
  
  exports.ErrorResponse = ErrorResponse;
  