Messaging

object Messaging

Companion object for Messaging that provides implicit implementations for the following types:

  • java.lang.Throwable

  • arbitary object with a message() method that returns String

  • arbitary object with a parameterless message method that returns String

  • arbitary object with a getMessage() method that returns String

  • arbitary object with a parameterless getMessage method that returns String

Companion:
class
class Object
trait Matchable
class Any

Implicits

Implicits

implicit def messagingNatureOfAnyRefWithGetMessageMethod[T <: AnyRef { def getMessage(): String; }]: Messaging[T]

Provides Messaging implementation for any arbitrary object with a getMessage() method that returns String

Provides Messaging implementation for any arbitrary object with a getMessage() method that returns String

Type parameters:
T

any type that has a getMessage() method that returns String

Returns:

Messaging[T] that supports T in have message syntax

implicit def messagingNatureOfAnyRefWithMessageMethod[T <: AnyRef { def message(): String; }]: Messaging[T]

Provides Messaging implementation for any arbitrary object with a message() method that returns String

Provides Messaging implementation for any arbitrary object with a message() method that returns String

Type parameters:
T

any type that has a message() method that returns String

Returns:

Messaging[T] that supports T in have message syntax

implicit def messagingNatureOfAnyRefWithParameterlessGetMessageMethod[T <: AnyRef { def getMessage: String; }]: Messaging[T]

Provides Messaging implementation for any arbitrary object with a parameterless getMessage method that returns String

Provides Messaging implementation for any arbitrary object with a parameterless getMessage method that returns String

Type parameters:
T

any type that has a parameterless getMessage method that returns String

Returns:

Messaging[T] that supports T in have message syntax

implicit def messagingNatureOfAnyRefWithParameterlessMessageMethod[T <: AnyRef { def message: String; }]: Messaging[T]

Provides Messaging implementation for any arbitrary object with a parameterless message method that returns String

Provides Messaging implementation for any arbitrary object with a parameterless message method that returns String

Type parameters:
T

any type that has a parameterless message method that returns String

Returns:

Messaging[T] that supports T in have message syntax