From b9f03483a4781750501b992b9dc5bd66f5008c5e Mon Sep 17 00:00:00 2001 From: bogdanRada Date: Tue, 27 May 2014 10:58:02 +0300 Subject: [PATCH] up --- README.rdoc | 42 +----------------------------------------- 1 file changed, 1 insertion(+), 41 deletions(-) diff --git a/README.rdoc b/README.rdoc index 2bab338..716ad14 100644 --- a/README.rdoc +++ b/README.rdoc @@ -105,47 +105,7 @@ Here is an example : :description => "some description about this method to show in the documentation" -The exception classes used must inherit from WashOut::Dispatcher::SOAPError, which has by default a error code and a message as attributes but you can extend it by adding more attributes to your own custom class. - -The WashOut::SoapError now includes Virtus.model from +virtus+ gem. This way you can add attributes like this: - - class MyCustomSoapError < WashOut::Dispatcher::SOAPError - - attribute :custom_attribute, String - attribute :other_custom_attribute, Integer - - end - -You can also specify complex types like this: - - class MyCustomSoapError < WashOut::Dispatcher::SOAPError - - attribute :errors,Array[Integer] - attribute :custom, Array[MyCustomModel] - attribute :custom2, MyCustomModel - - end - -The class MyCustomModel must include +Virtus.model+ or +Virtus.value_object+ or it must include at least one module that includes +Virtus.module+ if you want it to show up in the documentation! -Please checkout {Virtus Gem}[https://github.com/solnic/virtus] for further documentation! - -You can also use aggregation with another fault class exception like this: - - class MyCustomSoapError < WashOut::Dispatcher::SOAPError - - attribute :errors, Array[MyOtherCustomSoapError] - - end - -And you can also use inheritance between custom exception classes like this: - - class MySecondCustomSoapError < MyCustomSoapError - - atribute :option , String - - end - -And you will see in the documentation that the class +MySecondCustomSoapError+ will extend +MyCustomSoapError+ +The exception classes used must inherit from WashOut::Dispatcher::SOAPError, which has by default a error code and a message as attributes . = Testing