ref_send API 2.17
defensive programming in Java

Class WrongBrand

  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:, Immutable, Powerless

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

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


public final Brand<?> expected
expected brand


public final Brand<?> actual
actual brand

Constructor Detail


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

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.