ref_send API 2.17
defensive programming in Java

org.ref_send.brand
Class WrongBrand

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.ClassCastException
                  extended by org.ref_send.brand.WrongBrand
All Implemented Interfaces:
java.io.Serializable, Immutable, Powerless

public class WrongBrand
extends java.lang.ClassCastException
implements Powerless, java.io.Serializable

Signals a Brand mismatch.

See Also:
Serialized Form

Field Summary
 Brand<?> actual
          actual brand
 Brand<?> expected
          expected brand
 
Constructor Summary
WrongBrand(Brand<?> expected, Brand<?> actual)
          Constructs an instance.
 
Method Summary
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

expected

public final Brand<?> expected
expected brand


actual

public final Brand<?> actual
actual brand

Constructor Detail

WrongBrand

public WrongBrand(Brand<?> expected,
                  Brand<?> actual)
Constructs an instance.

Parameters:
expected - expected
actual - actual

ref_send API 2.17
defensive programming in Java

Submit a bug or feature, or get help

Copyright 1998-2009 Waterken Inc. under the terms of the MIT X license.