FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

cfml-module-error

v0.5.1 Public

cfml-module-error

This module includes the Error handler used by PGA Apps.

This module has built in tests, and a CI that will run tests, and if the tests pass, publish the module to S3 and Forgebox through Circle CI.

Installation

Since this module will be used outside of ColdBox, you need to install another module... to ensure the error module needs to know where the Utils is installed. With ColdBox, this would not be needed.

This module can be installed using 2 simple commandbox commands:

box install cfml-module-utils-pgahq
box install cfml-module-error-pga

This will install the module and use the box.json to track the dependencies.

Usage

These module is installed into /error. CFCs can be used via the path error.models.logger

Using CFConfig, you can set the following settings to use for error handling

"generalErrorTemplate":"/error/error.cfm",
"missingErrorTemplate":"/error/notfound.cfm",

You can include the error handler in a try catch with

<cfinclude template="/error/error.cfm"> 

Test coverage

Tests are located in the /tests folder.

Tests can be run by hitting /tests/runner.cfm

Git ignore

Please ensure your apps are setup to ignore the error and modules folder.

Here are all the versions for this package. Please note that you can leverage CommandBox package versioning to install any package you like. Please refer to our managing package version guide for more information.

Version Created Last Update Published By Stable Actions
Current
0.5.1 Apr 24 2019 11:17 AM Apr 24 2019 11:17 AM
Version History
0.5.0 Apr 09 2019 02:04 PM Apr 09 2019 02:04 PM
0.4.0 Apr 09 2019 02:03 PM Apr 09 2019 02:03 PM
0.3.0 Mar 25 2019 11:50 AM Mar 25 2019 11:50 AM

 

No collaborators yet.
  • Mar 25 2019 11:50 AM
  • Apr 24 2019 11:17 AM
  • 262
  • 396
  • 13