Latest 2.0.0
Homepage https://github.com/packatino/RMError
License MIT
Platforms ios 8.0
Authors

Build Status

Makes creating NSError objects easier than ever before!

Add RMError to your project

The best way to use RMError is via CocoaPods by adding the following line to your pod file:

pod 'RMError'

Use RMError

To use RMError you have to import the NSError+RMError.h category:

#import <NSError+RMError.h>

The simplest way to create an NSError object looks like this:

NSError *error = RMErrorCreate(@"My error message.");

You can also use those more convenient methods:

NSError *error = [NSError errorWithDescription:@"My error message."];

NSError *error = [NSError errorWithCode:123];

NSError *error = [NSError errorWithCode:123 description:@"My error message."];

NSError *error = [NSError errorWithCode:123 description:@"My error message." domain:@"MyErrorDomain"];

Don’t hesitate to give feedback or create a pull request :)

Latest podspec

{
    "name": "RMError",
    "version": "2.0.0",
    "summary": "Makes creating NSError objects easier than ever before!",
    "description": "RMError lets you create NSError objects with a single line of code.",
    "homepage": "https://github.com/packatino/RMError",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Robert Miu00dfbach": ""
    },
    "social_media_url": "https://twitter.com/packatino",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/packatino/RMError.git",
        "tag": "2.0.0"
    },
    "source_files": [
        "RMError/RMError",
        "RMError/RMError/**/*.{h,m}"
    ]
}

Pin It on Pinterest

Share This