Latest 2.0.0
License MIT
Platforms ios 8.0

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": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Robert Miu00dfbach": ""
    "social_media_url": "",
    "platforms": {
        "ios": "8.0"
    "source": {
        "git": "",
        "tag": "2.0.0"
    "source_files": [

Pin It on Pinterest

Share This