copyWith method
Creates a copy of the current SerinusException with the given parameters.
Implementation
SerinusException copyWith({String? message, Uri? uri, int? statusCode}) {
return SerinusException(
message: message ?? this.message,
uri: uri ?? this.uri,
statusCode: statusCode ?? this.statusCode,
);
}