Latest 1.1.0
Homepage https://github.com/valnoc/VBError
License MIT
Platforms ios 8.0, requires ARC
Authors

VBError is a base class for your own errors. It makes error creation and handling more effective.

When handling error you can check class instead of making domain+code check.

You can also create same errors(domain+code) in different parts of code by creating an instance of the same VBError subclass.

Use case 1.

  1. Create VBError subclass.
  2. Call +errorWithCode:, errorWithUserInfo:, +errorWithCode:userInfo: or +errorWithError: to create an instance.

Use case 2

  1. Create VBError subclass.
  2. Implement +code method.
  3. Call +error, +errorWithUserInfo: to create an instance.

How to install

Use CocoaPods

pod 'VBError'

or

Drag VBError dir into your project.

License

VBError is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "VBError",
    "version": "1.1.0",
    "summary": "VBError is a base class for your own errors.",
    "description": "VBError is a base class for your own errors. It makes error creation and handling more effective.nnWhen handling error you can check class instead of making domain+code check.nnYou can also create same errors(domain+code) in different parts of code by creating an instance of the same VBError subclass.nnUse case 1.n1. Create VBError subclass.n2. Call +errorWithCode:, errorWithUserInfo:, +errorWithCode:userInfo: or +errorWithError: to create an instance.nnUse case 2n1. Create VBError subclass.n2. Implement +code method.n3. Call +error, +errorWithUserInfo: to create an instance.",
    "homepage": "https://github.com/valnoc/VBError",
    "license": "MIT",
    "authors": {
        "Valeriy Bezuglyy": "[email protected]"
    },
    "source": {
        "git": "https://github.com/valnoc/VBError.git",
        "tag": "v1.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "VBError/**/*"
}

Pin It on Pinterest

Share This