org.hpccsystems.ws.client.wrappers.ArrayOfBaseExceptionWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wsclient Show documentation
Show all versions of wsclient Show documentation
This project allows a user to interact with ESP services in a controlled manner. The API calls available under org.hpccsystems.ws.client.platform allow for a user to target ESP's across multiple environments running a range of hpccsystems-platform versions. There is no guarantee that if a user utilizes org.hpccsystems.ws.client.gen generated stub code from wsdl, that the calls will be backwards compatible with older hpccsystems-platform versions.
package org.hpccsystems.ws.client.wrappers;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
public class ArrayOfBaseExceptionWrapper extends Exception
{
private static final long serialVersionUID = 1L;
protected String wsClientMessage;
protected String source;
protected List exceptions = new ArrayList();
/**
* Gets the ws client message.
*
* @return the localMessage
*/
public String getWsClientMessage()
{
return wsClientMessage;
}
/**
* Sets the source.
*
* @param _source
* the new source
*/
public void setSource( String _source )
{
this.source = _source;
}
/**
* Gets the source.
*
* @return the source
*/
public String getSource( )
{
return this.source;
}
/* (non-Javadoc)
* @see java.lang.Throwable#getLocalizedMessage()
*/
@Override
public String getLocalizedMessage()
{
String message = super.getLocalizedMessage();
if (message == null || message.isEmpty())
message = wsClientMessage + ":" + exceptions.stream().map(p -> p.getMessage()).collect(Collectors.joining(", "));
return message;
}
/* (non-Javadoc)
* @see java.lang.Throwable#getMessage()
*/
@Override
public String getMessage()
{
String message = super.getMessage();
if (message == null || message.isEmpty())
message = wsClientMessage + ":" + exceptions.stream().map(p -> p.getMessage()).collect(Collectors.joining(", "));
return message;
}
/**
* Sets the exceptions.
*
* @param _exception
* the new exceptions
*/
public void setExceptions( List _exception )
{
this.exceptions = _exception;
}
/**
* Gets the exceptions.
*
* @return the exceptions
*/
public List getExceptions( )
{
return this.exceptions;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy