codesimian
Class Legal

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by codesimian.Legal
All Implemented Interfaces:
java.io.Serializable

public class Legal
extends java.lang.RuntimeException

Things relevant to licenses, contracts, laws, governments, or anything they indirectly control.

Theoretical example code: throw new Legal("You distributed my binary without source-code," +" which violates GNU GPL 2+. Read the file doc/license.txt");

See Also:
Serialized Form

Field Summary
static java.lang.String licenseFileName
           
 
Constructor Summary
Legal()
           
Legal(java.lang.String message)
           
 
Method Summary
static java.lang.String getLicense()
           
static java.lang.String getLicenseLongName()
           
static java.lang.String getLicenseShortName()
           
static java.lang.String getLicenseSummary()
           
 
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
 

Field Detail

licenseFileName

public static final java.lang.String licenseFileName
See Also:
Constant Field Values
Constructor Detail

Legal

public Legal()

Legal

public Legal(java.lang.String message)
Method Detail

getLicenseShortName

public static java.lang.String getLicenseShortName()

getLicenseLongName

public static java.lang.String getLicenseLongName()

getLicenseSummary

public static java.lang.String getLicenseSummary()

getLicense

public static java.lang.String getLicense()