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

cfml-module-error

v0.5.1 Modules

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.

$ box install cfml-module-error-pga

No collaborators yet.
  • {{ getFullDate("2019-03-25T11:50:06Z") }}
  • {{ getFullDate("2019-04-24T11:17:18Z") }}
  • 1,394
  • 2,557