Information about errors and exceptions occurred during execution of the methods of Sitebuilder API is carrying in standard SOAP Fault element. The subelement faultcode contains the error code, the subelement faultstring contains a brief description of the error. For some errors the detailed information may be provided in detail subelement.
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>ERROR_BAD_LOGIN</faultcode>
<faultstring>Bad login or password.</faultstring>
<faultactor/>
<detail/>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
| Fault Code | Description |
|---|---|
| ERROR_GENERIC | Generic error. The subelement detail contains the error details. |
| ERROR_NOT_IMPLEMENTED | Feature has not been implemented. |
| ERROR_BAD_LOGIN | Bad login or password. |
| ERROR_NO_AUTH_HEADER | The authorization header is missing or invalid. |
| ERROR_ACTION_FAILED | Action has been failed. The subelement detail contains the error details. |
| ERROR_ACTION_WARNINGS | Action has been done with warnings. The subelement detail contains the error details. |
| ERROR_ACL_NO_ACCESS | Action is not allowed. |
| ERROR_API_DISABLED | Sitebuilder API has been disabled. |
Information about errors and exceptions occurred during execution of methods of Sitebuilder API is carrying in standard detail subelement of SOAP Fault element.
<SBFaultDetailValue xmlns="http://swsoft.com/webservices/sb/4.1/SoapFaultDetail"> <Code>Error code</Code> <Name>Error/exception name</Name> <Message>Error/exception message</Message> <StackTrace>Stacktrace</StackTrace> </SBFaultDetailValue>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>System.Web.Services.Protocols.SoapException: Server was unable to process request.</faultstring>
<detail>
<SBFaultDetailValue xmlns="http://swsoft.com/webservices/sb/4.1/SoapFaultDetail">
<Code>-32</Code>
<Name>SWsoft.SiteBuilder.BO.Facade.SecurityException</Name>
<Message>No user account is associated with the current execution thread</Message>
<StackTrace />
</SBFaultDetailValue>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
| Code | Name | Description |
|---|---|---|
| -3 | SWsoft.SiteBuilder.BO.Facade.AccountLockedException | The exception that is thrown when a user with blocked account tries to login |
| -4 | SWsoft.SiteBuilder.BO.Facade.AccountServiceException | The exception that is thrown when an internal service error occurs |
| -5 | SWsoft.SiteBuilder.BO.Facade.AnonymousPlanException | The exception that is thrown when a user tries to delete or change the status for an anonymous Plan |
| -6 | SWsoft.SiteBuilder.BO.Facade.BuiltInAccountException | The exception that is thrown when someone attemts to change the status, delete or change the role for a built-in account |
| -7 | SWsoft.SiteBuilder.BO.Facade.ConstraintViolationException | The exception that is thrown when attempt to create site with already existing ID occurs |
| -8 | SWsoft.SiteBuilder.BO.Facade.DuplicatePlanNameException | The exception that is thrown when a user tries to save a Plan with the name that already exists |
| -9 | SWsoft.SiteBuilder.BO.Facade.DuplicateUserNameException | The exception that is thrown if an account with such user name already exists |
| -10 | SWsoft.SiteBuilder.BO.Facade.EntityNotFoundException | The exception that is thrown when some required object - account, host, site etc. - is not found |
| -12 | SWsoft.SiteBuilder.BO.Facade.HostServiceDuplicateIpAddressException | The exception that is thrown when a host with the specified IP address already exists |
| -11 | SWsoft.SiteBuilder.BO.Facade.HostServiceException | The exception that is thrown when an internal host service error occurs |
| -13 | SWsoft.SiteBuilder.BO.Facade.HostServiceHostNotFoundException | The exception that is thrown when a specified host is not found |
| -14 | SWsoft.SiteBuilder.BO.Facade.HostServiceInvalidCriteriaException | Deprecated. Not used |
| -15 | SWsoft.SiteBuilder.BO.Facade.HostServiceInvalidIpAddressException | The exception that is thrown when a specified IP address for a host is invalid |
| -16 | SWsoft.SiteBuilder.BO.Facade.HostServiceInvalidNameException | The exception that is thrown when a specified host name is invalid |
| -17 | SWsoft.SiteBuilder.BO.Facade.HostServiceOwnerNotFoundException | The exception that is thrown when a specified host owner is not found |
| -18 | SWsoft.SiteBuilder.BO.Facade.LanguageServiceException | The exception that is thrown when an internal service error occurs |
| -19 | SWsoft.SiteBuilder.BO.Facade.LicenseVersionException | The exception that is thrown when a user tries to import the license with unsupported version |
| -20 | SWsoft.SiteBuilder.BO.Facade.LocationCheckException | The exception that is thrown when the location check has failed |
| -21 | SWsoft.SiteBuilder.BO.Facade.Migration.MigrationException | The exception that is thrown when migration of a site content from SiteBuilder v2.0.5 has failed |
| -22 | SWsoft.SiteBuilder.BO.Facade.NotificationServiceException | Reserved. Not used |
| -23 | SWsoft.SiteBuilder.BO.Facade.PasswordException | The exception that is thrown when a password is too weak |
| -24 | SWsoft.SiteBuilder.BO.Facade.PlanLimitException | The exception that is thrown when some operation is not possible because the Plan limits are exceeded |
| -25 | SWsoft.SiteBuilder.BO.Facade.PlanServiceException | The exception that is thrown when an internal Plan service error occurs |
| -27 | SWsoft.SiteBuilder.BO.Facade.PlanWithoutPagesetsException | The exception that is thrown when a newly created or existing Plan does not contain any Page Set |
| -28 | SWsoft.SiteBuilder.BO.Facade.PlanWithoutSiteFamiliesException | The exception that is thrown when a newly created or existing Plan does not contain any Site Family |
| -29 | SWsoft.SiteBuilder.BO.Facade.PlanWithoutTemplatesException | The exception that is thrown when a newly created or existing Plan does not contain any template |
| -30 | SWsoft.SiteBuilder.BO.Facade.PublishException | The exception that is thrown when the publishing has failed |
| -31 | SWsoft.SiteBuilder.BO.Facade.ResellerUnsupportedException | The exception that is thrown when a user tries to save a reseller account |
| -32 | SWsoft.SiteBuilder.BO.Facade.SecurityException | The exception that is thrown when a user does not have enough permissions for performing an operation or there is no user logged |
| -33 | SWsoft.SiteBuilder.BO.Facade.SelfModificationException | The exception that is thrown when a user tries to delete their own account or change their own role |
| -2 | SWsoft.SiteBuilder.BO.Facade.ServiceException | The exception that is thrown when an internal base service error occurs |
| -35 | SWsoft.SiteBuilder.BO.Facade.SiteFamilyDupCodeException | The exception that is thrown when a specified Site Family code already exists |
| -34 | SWsoft.SiteBuilder.BO.Facade.SiteFamilyServiceException | The exception that is thrown when an internal Site Family service error occurs |
| -36 | SWsoft.SiteBuilder.BO.Facade.SiteServiceDuplicatedAliasException | The exception that is thrown when a specified site alias already exists |
| -37 | SWsoft.SiteBuilder.BO.Facade.SiteServiceException | The exception that is thrown when an internal site service error occurs |
| -38 | SWsoft.SiteBuilder.BO.Facade.SiteServiceHostNotActiveException | The exception that is thrown when a host specified for site publishing is not active |
| -39 | SWsoft.SiteBuilder.BO.Facade.SiteServiceInvalidAliasException | The exception that is thrown when a specified site alias is invalid |
| -40 | SWsoft.SiteBuilder.BO.Facade.SiteServiceInvalidCriteriaException | The exception that is thrown when a specified site search criterion is invalid |
| -41 | SWsoft.SiteBuilder.BO.Facade.SiteServiceInvalidIdException | The exception that is thrown when a specified site ID is invalid |
| -42 | SWsoft.SiteBuilder.BO.Facade.SiteServiceInvalidIpAddressException | The exception that is thrown when a specified IP address is invalid |
| -43 | SWsoft.SiteBuilder.BO.Facade.SiteServiceInvalidPublishingSettingsException | The exception that is thrown when a specified site publishing settings are invalid |
| -44 | SWsoft.SiteBuilder.BO.Facade.SiteServiceLicenseModeException | Reserved. Not used |
| -45 | SWsoft.SiteBuilder.BO.Facade.SiteServiceLoopbackAddressException | The exception that is thrown when a specified IP address is loopback/localhost address |
| -46 | SWsoft.SiteBuilder.BO.Facade.SiteServiceNoHostException | The exception that is thrown when no host is specified in the site publishing settings |
| -47 | SWsoft.SiteBuilder.BO.Facade.SiteServiceNotActiveException | The exception that is thrown when a specified site is not active |
| -48 | SWsoft.SiteBuilder.BO.Facade.SiteServiceNotAnonymousSiteException | The exception that is thrown when a specified site is not trial/anonymous site |
| -49 | SWsoft.SiteBuilder.BO.Facade.SiteServiceOwnerNotFoundException | The exception that is thrown when a specified site owner is not found |
| -50 | SWsoft.SiteBuilder.BO.Facade.SiteServicePreviewFailedException | The exception that is thrown when site preview has failed |
| -51 | SWsoft.SiteBuilder.BO.Facade.SiteServicePublishAnywhereException | The exception that is thrown when publishing to any FTP host is not allowed |
| -52 | SWsoft.SiteBuilder.BO.Facade.SiteServicePublishFailedException | The exception that is thrown when publishing has failed |
| -53 | SWsoft.SiteBuilder.BO.Facade.SiteServicePublishLoginFailedException | The exception that is thrown when the specified credentials for login to a publishing FTP/VPS server are invalid |
| -54 | SWsoft.SiteBuilder.BO.Facade.SiteServicePublishModeNotSupportedException | The exception that is thrown when the specified publishing mode is not supported |
| -55 | SWsoft.SiteBuilder.BO.Facade.SiteServiceSiteNotFoundException | The exception that is thrown when a specified site is not found |
| -63 | SWsoft.SiteBuilder.BO.Facade.SiteServiceTrialSitePublishException | The exception that is thrown when someone publish trial site |
| -64 | SWsoft.SiteBuilder.BO.Facade.SiteServiceTrialSitePublishingSettingsException | The exception that is thrown when someone publish trial site |
| -56 | SWsoft.SiteBuilder.BO.Facade.StatisticsServiceException | Reserved. Not used |
| -57 | SWsoft.SiteBuilder.BO.Facade.ThemeServiceException | The exception that is thrown when an internal Theme service error occurs |
| -58 | SWsoft.SiteBuilder.BO.Facade.UnsupportedDatabaseVersionException | The exception that is thrown when SiteBuilder database version is invalid |
| -59 | SWsoft.SiteBuilder.BO.Facade.UsedPlanException | The exception that is thrown when a user tries to delete a Plan that is assigned to one or more accounts |
| -60 | SWsoft.SiteBuilder.Common.InternalErrorException | The exception that is thrown when an internal error occurs |
| -62 | System.ArgumentException | The exception that is thrown when one of the arguments provided to a method is not valid. |
| -61 | TechTalk.Dal.DalException |