Package net.officefloor.frame.api.build
Class OfficeFloorBuildException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- net.officefloor.frame.api.build.OfficeFloorBuildException
-
- All Implemented Interfaces:
java.io.Serializable
public class OfficeFloorBuildException extends java.lang.Exception
Indicates failure to build aOfficeFloor
.- Author:
- Daniel Sagenschneider
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OfficeFloorBuildException(java.lang.String reason)
Initiate with reason.OfficeFloorBuildException(java.lang.String reason, java.lang.Throwable cause)
Initiate.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OfficeFloor
buildOfficeFloor(OfficeFloorBuilder officeFloorBuilder)
Provides the necessary functionality to propagate theOfficeFloorBuildException
on the first issue in constructing theOfficeFloor
.
-
-
-
Constructor Detail
-
OfficeFloorBuildException
public OfficeFloorBuildException(java.lang.String reason)
Initiate with reason.- Parameters:
reason
- Reason.
-
OfficeFloorBuildException
public OfficeFloorBuildException(java.lang.String reason, java.lang.Throwable cause)
Initiate.- Parameters:
reason
- Reason.cause
- Cause.
-
-
Method Detail
-
buildOfficeFloor
public static final OfficeFloor buildOfficeFloor(OfficeFloorBuilder officeFloorBuilder) throws OfficeFloorBuildException
Provides the necessary functionality to propagate the
OfficeFloorBuildException
on the first issue in constructing theOfficeFloor
.This is a convenience method for
OfficeFloorBuilder.buildOfficeFloor()
.- Parameters:
officeFloorBuilder
-OfficeFloorBuilder
.- Returns:
OfficeFloor
.- Throws:
OfficeFloorBuildException
-OfficeFloorBuildException
if failure to constructOfficeFloor
.- See Also:
OfficeFrame
-
-