ServiceManager/Utility/StatusResponse.cs
/// <summary>
/// Generates an exception based on the given failed NetSuite Status response.
/// </summary>
/// <param name="status">The status.</param>
/// <returns></returns>
Generates an exception based on the given failed NetSuite Status response.
Generates an exception based on the given failed NetSuite Status response .
public static StatusErrorException ConvertToException(Status status)
        {
            if (status.statusDetail == null)
                throw new InvalidOperationException("Cannot create an exception when the Status.statusDetail is null");
            else
            {
                return new StatusErrorException(GetStatusDetailMessages(status.statusDetail, "\n"))
                        {
                            Details = status.statusDetail,
                        };            
            }
        }
public static StatusErrorException ConvertToException ( Status status ) { if ( status . statusDetail == null ) throw new InvalidOperationException ( " " ) ; else { return new StatusErrorException ( GetStatusDetailMessages ( status . statusDetail , " \n " ) ) { Details = status . statusDetail , } ; } }
Generates an exception based on the given failed NetSuite Status response.
Generates an exception based on the given failed NetSuite Status response .
None
status
Status
None