Package org.apache.ofbiz.service
Class ServiceValidationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.ofbiz.base.util.GeneralException
-
- org.apache.ofbiz.service.GenericServiceException
-
- org.apache.ofbiz.service.ServiceValidationException
-
- All Implemented Interfaces:
java.io.Serializable
public class ServiceValidationException extends GenericServiceException
ServiceValidationException- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
errorMode
protected java.util.List<java.lang.String>
extraFields
protected java.util.List<java.lang.String>
messages
protected java.util.List<java.lang.String>
missingFields
protected ModelService
service
-
Constructor Summary
Constructors Constructor Description ServiceValidationException(java.lang.String str, java.lang.Throwable nested, ModelService service)
ServiceValidationException(java.lang.String str, java.lang.Throwable nested, ModelService service, java.util.List<java.lang.String> missingFields, java.util.List<java.lang.String> extraFields, java.lang.String errorMode)
ServiceValidationException(java.lang.String str, ModelService service)
ServiceValidationException(java.lang.String str, ModelService service, java.util.List<java.lang.String> missingFields, java.util.List<java.lang.String> extraFields, java.lang.String errorMode)
ServiceValidationException(java.util.List<java.lang.String> messages, ModelService service, java.lang.String errorMode)
ServiceValidationException(java.util.List<java.lang.String> messages, ModelService service, java.util.List<java.lang.String> missingFields, java.util.List<java.lang.String> extraFields, java.lang.String errorMode)
ServiceValidationException(ModelService service, java.util.List<java.lang.String> missingFields, java.util.List<java.lang.String> extraFields, java.lang.String errorMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getExtraFields()
java.lang.String
getMessage()
Returns the detail message, including the message from the nested exception if there is one.java.util.List<java.lang.String>
getMessageList()
java.util.List<java.lang.String>
getMissingFields()
java.lang.String
getMode()
ModelService
getModelService()
java.lang.String
getServiceName()
-
Methods inherited from class org.apache.ofbiz.base.util.GeneralException
checkException, checkException, getNested, getNonNestedMessage, printStackTrace, printStackTrace, printStackTrace
-
-
-
-
Field Detail
-
messages
protected java.util.List<java.lang.String> messages
-
missingFields
protected java.util.List<java.lang.String> missingFields
-
extraFields
protected java.util.List<java.lang.String> extraFields
-
errorMode
protected java.lang.String errorMode
-
service
protected ModelService service
-
-
Constructor Detail
-
ServiceValidationException
public ServiceValidationException(ModelService service, java.util.List<java.lang.String> missingFields, java.util.List<java.lang.String> extraFields, java.lang.String errorMode)
-
ServiceValidationException
public ServiceValidationException(java.lang.String str, ModelService service)
-
ServiceValidationException
public ServiceValidationException(java.lang.String str, ModelService service, java.util.List<java.lang.String> missingFields, java.util.List<java.lang.String> extraFields, java.lang.String errorMode)
-
ServiceValidationException
public ServiceValidationException(java.lang.String str, java.lang.Throwable nested, ModelService service)
-
ServiceValidationException
public ServiceValidationException(java.lang.String str, java.lang.Throwable nested, ModelService service, java.util.List<java.lang.String> missingFields, java.util.List<java.lang.String> extraFields, java.lang.String errorMode)
-
ServiceValidationException
public ServiceValidationException(java.util.List<java.lang.String> messages, ModelService service, java.util.List<java.lang.String> missingFields, java.util.List<java.lang.String> extraFields, java.lang.String errorMode)
-
ServiceValidationException
public ServiceValidationException(java.util.List<java.lang.String> messages, ModelService service, java.lang.String errorMode)
-
-
Method Detail
-
getExtraFields
public java.util.List<java.lang.String> getExtraFields()
-
getMissingFields
public java.util.List<java.lang.String> getMissingFields()
-
getMessageList
public java.util.List<java.lang.String> getMessageList()
- Overrides:
getMessageList
in classGeneralException
-
getModelService
public ModelService getModelService()
-
getMode
public java.lang.String getMode()
-
getServiceName
public java.lang.String getServiceName()
-
getMessage
public java.lang.String getMessage()
Description copied from class:GeneralException
Returns the detail message, including the message from the nested exception if there is one.- Overrides:
getMessage
in classGeneralException
-
-