scalut.xml.soap.SoapFault.scala Maven / Gradle / Ivy
The newest version!
package scalut.xml.soap
import scalut.util.Enum
import scalut.xml.soap.SoapFault.FaultCode
case class SoapFault[T](code: FaultCode.Type, string: String, actor: String, detail: T)
object SoapFault {
object FaultCode extends Enum {
/** Found an invalid namespace for the SOAP Envelope element */
val VERSION_MISMATCH = Value(1, "VersionMismatch")
/** An immediate child element of the Header element, with the mustUnderstand attribute set to "1", was not understood */
val MUST_UNDERSTAND = Value(2, "MustUnderstand")
/** The message was incorrectly formed or contained incorrect information */
val CLIENT = Value(3, "Client")
/** There was a problem with the server so the message could not proceed */
val SERVER = Value(4, "Server")
}
}