All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wix.pay.smaug.client.AuthenticationException.scala Maven / Gradle / Ivy

The newest version!
/*      __ __ _____  __                                              *\
**     / // // /_/ |/ /          Wix                                 **
**    / // // / /|   /           (c) 2006-2017, Wix LTD.             **
**   / // // / //   |            http://www.wix.com/                 **
**   \__/|__/_//_/| |                                                **
\*                |/                                                 */
package com.wix.pay.smaug.client


/** An exception class indicates that invalid credentials were provided on the request.
  *
  * @author Raz, Ohad
  */
case class AuthenticationException(message: String, cause: Throwable) extends RuntimeException(message, cause)


/** The Companion Object of the [[AuthenticationException]] class, which introduces means for instantiating an
  * exception object.
  *
  * @author Raz, Ohad
  */
object AuthenticationException {
  def apply(message: String): AuthenticationException = this(message, null)
  def apply(cause: Throwable): AuthenticationException = this(Option(cause).map(_.toString).orNull, cause)
  def apply(): AuthenticationException = this(null, null)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy