com.quartzdesk.service.api.fault.v1_0
Class FaultInfoFactory

java.lang.Object
  extended by com.quartzdesk.service.api.fault.v1_0.FaultInfoFactory

public class FaultInfoFactory
extends Object

Version:
$Id:$
Author:
Jan Moravec

Constructor Summary
FaultInfoFactory()
           
 
Method Summary
 SecurityFaultInfo createSecurityFaultInfo(String message)
          Creates a new SecurityFaultInfo instance with the specified message.
 SecurityFaultInfo createSecurityFaultInfo(Throwable e)
          Creates a new SecurityFaultInfo instance and populates it with the information obtained from the specified exception.
 ServiceFaultInfo createServiceFaultInfo(String message)
          Creates a new ServiceFaultInfo instance with the specified message.
 ServiceFaultInfo createServiceFaultInfo(Throwable e)
          Creates a new ServiceFaultInfo instance and populates it with the information obtained from the specified exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FaultInfoFactory

public FaultInfoFactory()
Method Detail

createServiceFaultInfo

public ServiceFaultInfo createServiceFaultInfo(String message)
Creates a new ServiceFaultInfo instance with the specified message.

Parameters:
message - a message.
Returns:
the created ServiceFaultInfo instance.

createServiceFaultInfo

public ServiceFaultInfo createServiceFaultInfo(Throwable e)
Creates a new ServiceFaultInfo instance and populates it with the information obtained from the specified exception.

Parameters:
e - an exception.
Returns:
the created ServiceFaultInfo instance.

createSecurityFaultInfo

public SecurityFaultInfo createSecurityFaultInfo(String message)
Creates a new SecurityFaultInfo instance with the specified message.

Parameters:
message - a message.
Returns:
the created SecurityFaultInfo instance.

createSecurityFaultInfo

public SecurityFaultInfo createSecurityFaultInfo(Throwable e)
Creates a new SecurityFaultInfo instance and populates it with the information obtained from the specified exception.

Parameters:
e - an exception.
Returns:
the created SecurityFaultInfo instance.


Copyright © 2013–2017 QuartzDesk.com. All rights reserved.