Skip to content

Instantly share code, notes, and snippets.

@juancho088
Last active June 11, 2018 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juancho088/ab7cec213d64b3ac316226bb9aaf4383 to your computer and use it in GitHub Desktop.
Save juancho088/ab7cec213d64b3ac316226bb9aaf4383 to your computer and use it in GitHub Desktop.
Movies exceptions
// File exceptions.kt in the movies package (microservice)
package com.myblockbuster.movies
import com.myblockbuster.core.MyException
class MovieAlreadyExistsException(code: Int = 400, message: String = "Movie Already Exists") : MyException(code, message)
class MovieNotExistsException(code: Int = 404, message: String = "Movie Doesn't Exists") : MyException(code, message)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment