diff options
author | Kseniya Tomskikh <ktomskih@datamonsters.co> | 2018-01-09 16:38:33 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-09 16:38:33 +0700 |
commit | 5bbb0bc66db5b49eb0e3f197be17798fb8093f2a (patch) | |
tree | e193a8a98a00eead3aac04ca52b2ba74473d7de0 /src/main/scala/xyz/driver/pdsuicommon/error | |
parent | d01a88b78638e4638216e0469c11a68a9e57effe (diff) | |
parent | 307488eaa7d725979688b26ffbbc57b938870bb7 (diff) | |
download | rest-query-0.15.0.tar.gz rest-query-0.15.0.tar.bz2 rest-query-0.15.0.zip |
Merge pull request #68 from drivergroup/support-service-exceptionsv0.15.0
Support service exceptions
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuicommon/error')
-rw-r--r-- | src/main/scala/xyz/driver/pdsuicommon/error/DomainError.scala | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/main/scala/xyz/driver/pdsuicommon/error/DomainError.scala b/src/main/scala/xyz/driver/pdsuicommon/error/DomainError.scala index c761414..becb585 100644 --- a/src/main/scala/xyz/driver/pdsuicommon/error/DomainError.scala +++ b/src/main/scala/xyz/driver/pdsuicommon/error/DomainError.scala @@ -16,9 +16,6 @@ object DomainError { // 404 error trait NotFoundError extends DomainError - // 401 error - trait AuthenticationError extends DomainError - // 403 error trait AuthorizationError extends DomainError @@ -28,14 +25,3 @@ object DomainError { Unsafe(Utils.getClassSimpleName(x.getClass)) } } - -/** Subclasses of this exception correspond to subclasses of DomainError. They - * are used in REST service implementations to fail futures rather than - * returning successful futures, completed with corresponding DomainErrors. */ -// scalastyle:off null -@SuppressWarnings(Array("org.wartremover.warts.Null")) -class DomainException(message: String, cause: Throwable = null) extends RuntimeException(message, cause) -class NotFoundException(message: String) extends DomainException(message) // 404 -class AuthenticationException(message: String) extends DomainException(message) // 401 -class AuthorizationException(message: String) extends DomainException(message) // 403 -// scalastyle:on null |