NSError+MTLModelException.h 613 B

1234567891011121314151617181920212223
  1. //
  2. // NSError+MTLModelException.h
  3. // Mantle
  4. //
  5. // Created by Robert Böhnke on 7/6/13.
  6. // Copyright (c) 2013 GitHub. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @interface NSError (MTLModelException)
  10. /// Creates a new error for an exception that occurred during updating an
  11. /// MTLModel.
  12. ///
  13. /// exception - The exception that was thrown while updating the model.
  14. /// This argument must not be nil.
  15. ///
  16. /// Returns an error that takes its localized description and failure reason
  17. /// from the exception.
  18. + (instancetype)mtl_modelErrorWithException:(NSException *)exception;
  19. @end