public class ServiceUtilities
extends java.lang.Object
コンストラクタと説明 |
---|
ServiceUtilities() |
修飾子とタイプ | メソッドと説明 |
---|---|
static java.lang.String |
cause(java.lang.Throwable t) |
static <T extends omero.model.IObject> |
collectionCast(java.lang.Class<T> klass,
java.util.List<omero.model.IObject> list)
Helper method for the conversion of base types in containers(normally
of type IObject) to a concrete type.
|
static java.lang.String |
convertPojos(omero.api.ContainerClass nodeType)
Converts the specified POJO into the corresponding model.
|
static void |
handleException(java.lang.Throwable t,
java.lang.String message)
Helper method to handle exceptions thrown by the connection library.
|
static java.lang.String |
printErrorText(java.lang.Throwable e)
Utility method to print the error message
|
public static <T extends omero.model.IObject> java.util.List<T> collectionCast(java.lang.Class<T> klass, java.util.List<omero.model.IObject> list)
T
- new type.klass
- new type class.list
- container.public static java.lang.String convertPojos(omero.api.ContainerClass nodeType)
nodeType
- The POJO class.public static void handleException(java.lang.Throwable t, java.lang.String message) throws omero.ServerError
t
- The exception.message
- The context message.DSOutOfServiceException
- A connection problem.DSAccessException
- A server-side error.omero.ServerError
public static java.lang.String cause(java.lang.Throwable t)
public static java.lang.String printErrorText(java.lang.Throwable e)
e
- The exception to handle.