com.wewebu.ow.server.exceptions
Class OwRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.wewebu.ow.server.exceptions.OwRuntimeException
All Implemented Interfaces:
Serializable

public abstract class OwRuntimeException
extends RuntimeException

Base class for all specialized unchecked Exception in OECM Framework.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com

See Also:
Serialized Form

Constructor Summary
OwRuntimeException(OwString message_p)
          Create a new OwRuntimeException with a localizable message.
OwRuntimeException(OwString message_p, Throwable cause_p)
          Create a new OwRuntimeException with a localizable message and a cause.
OwRuntimeException(String message_p)
          Create a new OwRuntimeException with a non-localizable message.
OwRuntimeException(String message_p, Throwable cause_p)
          Create a new OwRuntimeException with a non-localizable message and a cause.
 
Method Summary
 String getMessage(Locale locale_p)
          Get the localized message of this OwRuntimeException.
abstract  String getModulName()
          Get the name of the module / manager / plugin where the exception occured.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OwRuntimeException

public OwRuntimeException(String message_p)
Create a new OwRuntimeException with a non-localizable message.

Parameters:
message_p - the non-localizable message

OwRuntimeException

public OwRuntimeException(String message_p,
                          Throwable cause_p)
Create a new OwRuntimeException with a non-localizable message and a cause.

Parameters:
message_p - the non-localizable message
cause_p - the cause of this Exception

OwRuntimeException

public OwRuntimeException(OwString message_p)
Create a new OwRuntimeException with a localizable message.

Parameters:
message_p - the localizable message

OwRuntimeException

public OwRuntimeException(OwString message_p,
                          Throwable cause_p)
Create a new OwRuntimeException with a localizable message and a cause.

Parameters:
message_p - the localizable message
cause_p - the cause of this Exception
Method Detail

getMessage

public String getMessage(Locale locale_p)
Get the localized message of this OwRuntimeException.

Parameters:
locale_p - the Locale to localize this Exception for.
Returns:
the localized message if available or the unlocalized message if no localization is available.

getModulName

public abstract String getModulName()
Get the name of the module / manager / plugin where the exception occured.

Returns:
the name of the module / manager / plugin where the exception occured.


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.