com.github.izmailoff.marshalling
A PathMatcher that matches and extracts an ObjectId instance.
A PathMatcher that matches and extracts an ObjectId instance.
This is similar to spray.httpx.marshalling.MetaMarshallers.optionMarshaller except that we can communicate generic errors and specific error messages back.
This is similar to spray.httpx.marshalling.MetaMarshallers.optionMarshaller except that we can communicate generic errors and specific error messages back.
The convention we use is the following:
Full - result of operation was successful and it should be communicated back to the client. ParamFailure - an error happened and it should be communicated back to the client together with the param value. Exception will not be communicated back because it may contain sensitive information and it's not so useful to the client. Failure - an error happened and it should be communicated back to the client. Empty - an error happened but there is no specific message to pass back to the client. Prefer other types of failure over this one.
Additionally, based on types of values passed in Box subclasses we can convert some results to others. For instance if Unit is returned the message should become empty.
(mongoMarshallingSupport: StringAdd).self
(mongoMarshallingSupport: StringFormat).self
(mongoMarshallingSupport: ArrowAssoc[MongoMarshallingSupport]).x
(Since version 2.10.0) Use leftOfArrow
instead
(mongoMarshallingSupport: Ensuring[MongoMarshallingSupport]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
A single trait that brings all marshalling together. ...