Created
          November 4, 2015 21:54 
        
      - 
      
- 
        Save jschairb/9c26946a1b08d6e8d952 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | def some_method | |
| do_something | |
| rescue SomethingError | |
| raise SomeMethodErroredError | |
| end | |
| error SomeMethodErroredError do | |
| [422, headers, body] | |
| end | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
http://www.sinatrarb.com/intro.html#Error%20Handling