Class COM.ibm.jaws.mofw.MOFWResult
All Packages Class Hierarchy This Package Previous Next Index
Class COM.ibm.jaws.mofw.MOFWResult
java.lang.Object
|
+----java.lang.Throwable
|
+----java.lang.Exception
|
+----COM.ibm.jaws.mofw.MOFWResult
- public class MOFWResult
- extends Exception
Subclass your exceptions from MOFWResult when an "alternate" return
should be expected for your method. So far we have been able to
avoid this in MOFW by using appropriate return values and clearly defined
semantics for the method results. For example, we could have used a
DuplicateKeyResult for a bind operator on a NamedCollection, but by
providing a boolean return, we avoided the need to wrap bind calls in
try/catch blocks. As another example, the unbind (with a void return)
was defined to mean that the name to be unbound will no longer exist
in the NamedCollection (until the next bind/rebind). This semantics avoided
the need to throw a "CannotFindKeyResult" (or Error).
Like other Java Exceptions, the client needs to use the catch/throw
mechanism to insure that this option is covered.
-
MOFWResult()
- Constructs a MOFWResult with no detail message.
-
MOFWResult(String)
- Constructs a MOFWResult with a detail message.
MOFWResult
public MOFWResult()
- Constructs a MOFWResult with no detail message.
MOFWResult
public MOFWResult(String s)
- Constructs a MOFWResult with a detail message.
- Parameters:
- s - a
string
that indicates the problem.
All Packages Class Hierarchy This Package Previous Next Index