Orchestrator Class Library: Extensions

by Simon Sparks · 5 October 2025

Over the course of the next 12 months I will be adding functions to this page so bookmark it and come back regularly for new cool features and updates.

GitHub Repository: https://github.com/SimonSparksUK/Orchestrator

Filename: Extensions.ts

declareclassMissingRequiredParameterErrorextendsError{
constructor(strParameterName:string){
super(`❌ A required parameter '${strParameterName}' is missing.`);
}
}

declareclassError_RequiredParameter_MissingextendsError{
constructor(strParameterName:string){
super(`❌ A required parameter '${strParameterName}' is missing.`);
}
}

declareclassError_RequiredParameter_NullextendsError{
constructor(strParameterName:string){
super(`❌ A required parameter '${strParameterName}' is NULL.`);
}
}

declareclassError_RequiredParameter_EmptyStringextendsError{
constructor(strParameterName:string){
super(`❌ A required parameter '${strParameterName}' is an Empty String.`);
}
}

declareclassError_RequiredParameter_NotAStringextendsError{
constructor(strParameterName:string){
super(`❌ A required parameter '${strParameterName}' is Not a String.`);
}
}

declareclassError_RequiredParameter_EmptyArrayextendsError{
constructor(strParameterName:string){
super(`❌ A required parameter '${strParameterName}' is an Empty Array.`);
}
}

declareclassError_RequiredParameter_NotAnArrayextendsError{
constructor(strParameterName:string){
super(`❌ A required parameter '${strParameterName}' is Not an Array.`);
}
}

declareclassError_RequiredParameter_NotANumberextendsError{
constructor(strParameterName:string){
super(`❌ A required parameter '${strParameterName}' is Not a Number.`);
}
}

declareclassError_RequiredParameter_NotTrueOrFalseextendsError{
constructor(strParameterName:string){
super(`❌ A required parameter '${strParameterName}' is Not True or False.`);
}
}

declareclassError_RequiredParameter_NotADateextendsError{
constructor(strParameterName:string){
super(`❌ A required parameter '${strParameterName}' is Not a valid Date.`);
}
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like